feat: release zip after every change (#393)
This commit is contained in:
parent
f1dc627da0
commit
bdea7a69f6
|
@ -26,7 +26,6 @@ jobs:
|
|||
cp -v README.md /tmp/build/sysroot/var/lib/casaos/appstore/default.new/
|
||||
pushd /tmp
|
||||
tar zcvf linux-all-appstore-${{ github.ref_name }}.tar.gz build
|
||||
zip -r linux-all-appstore.zip build
|
||||
|
||||
- uses: softprops/action-gh-release@v1
|
||||
if: steps.build.outcome == 'success'
|
||||
|
@ -51,18 +50,3 @@ jobs:
|
|||
/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
|
||||
|
||||
- name: Copy
|
||||
run: |
|
||||
mkdir pages
|
||||
cp /tmp/linux-all-appstore.zip pages/linux-all-appstore.zip
|
||||
|
||||
- name: Pushes to another repository
|
||||
uses: cpina/github-action-push-to-another-repository@main
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB2 }}
|
||||
with:
|
||||
source-directory: 'pages'
|
||||
destination-github-username: 'CasaOS-AppStore'
|
||||
destination-repository-name: 'casaos-appstore.github.io'
|
||||
user-email: a778917369@gmail.com
|
||||
target-directory: 'casaos-appstore'
|
|
@ -0,0 +1,44 @@
|
|||
name: release zip to appstore page
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: remove all screenshots
|
||||
run: find . -name "screenshot*" | xargs rm -f
|
||||
- name: remove all thumbnails
|
||||
run: find . -name "thumbnail*" | xargs rm -f
|
||||
- name: create a build with sysroot
|
||||
id: build
|
||||
run: |
|
||||
rm -rf /tmp/build
|
||||
mkdir -p /tmp/build/sysroot/var/lib/casaos/appstore/default.new
|
||||
cp -rv build/* /tmp/build/
|
||||
cp -rv Apps /tmp/build/sysroot/var/lib/casaos/appstore/default.new/
|
||||
cp -v category-list.json /tmp/build/sysroot/var/lib/casaos/appstore/default.new/
|
||||
cp -v recommend-list.json /tmp/build/sysroot/var/lib/casaos/appstore/default.new/
|
||||
cp -v README.md /tmp/build/sysroot/var/lib/casaos/appstore/default.new/
|
||||
pushd /tmp
|
||||
zip -r linux-all-appstore.zip build
|
||||
|
||||
- name: Copy
|
||||
run: |
|
||||
mkdir pages
|
||||
cp /tmp/linux-all-appstore.zip pages/linux-all-appstore.zip
|
||||
|
||||
- name: Pushes to another repository
|
||||
uses: cpina/github-action-push-to-another-repository@main
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB2 }}
|
||||
with:
|
||||
source-directory: 'pages'
|
||||
destination-github-username: 'CasaOS-AppStore'
|
||||
destination-repository-name: 'casaos-appstore.github.io'
|
||||
user-email: a778917369@gmail.com
|
||||
target-directory: 'casaos-appstore'
|
Loading…
Reference in New Issue