feat: upload zip to GitHub pages (#382)

This commit is contained in:
CorrectRoadH 2024-01-15 14:06:59 +08:00 committed by GitHub
parent ac99852b2d
commit 76b177aea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -47,5 +47,26 @@ jobs:
assets: | assets: |
/tmp/checksums.txt:/IceWhaleTech/CasaOS-AppStore/releases/download/${{ steps.get_version.outputs.VERSION }}/checksums.txt /tmp/checksums.txt:/IceWhaleTech/CasaOS-AppStore/releases/download/${{ steps.get_version.outputs.VERSION }}/checksums.txt
/tmp/linux-all-appstore-${{ github.ref_name }}.tar.gz:/IceWhaleTech/CasaOS-AppStore/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-all-appstore-${{ github.ref_name }}.tar.gz /tmp/linux-all-appstore-${{ github.ref_name }}.tar.gz:/IceWhaleTech/CasaOS-AppStore/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-all-appstore-${{ github.ref_name }}.tar.gz
- name: Upload to GitHub Pages
uses: actions/checkout@v4
with:
repository: IceWhaleTech/icewhaletech.github.io
path: pages
- name: Copy Files to Pages
run: |
cp /tmp/checksums.txt pages/checksums.txt
cp /tmp/linux-all-appstore-${{ github.ref_name }}.tar.gz pages/
- name: Commit and Push to Target Repository
working-directory: pages
run: |
git config user.name 'GitHub Action'
git config user.email 'a778917369@gmail.com'
git add .
git commit -m "Update app store zip"
git push