-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: polish the release GitHub action (#395)
- Loading branch information
1 parent
e992d8e
commit e10b775
Showing
3 changed files
with
34 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,11 @@ jobs: | |
run: find . -name "screenshot*" | xargs rm -f | ||
- name: remove all thumbnails | ||
run: find . -name "thumbnail*" | xargs rm -f | ||
- name: remove all icon | ||
run: find . -name "icon.png" | xargs rm -f | ||
- name: remove all app file | ||
run: find . -name "appfile.json" | xargs rm -f | ||
|
||
- name: create a build with sysroot | ||
id: build | ||
run: | | ||
|
@@ -27,18 +32,35 @@ jobs: | |
pushd /tmp | ||
zip -r main.zip build | ||
- name: Copy | ||
- name: Checkout pages | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
path: pages | ||
|
||
- name: Copy build to pages | ||
run: | | ||
mkdir pages | ||
cp /tmp/main.zip pages/main.zip | ||
cp /tmp/main.zip pages/store/main.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' | ||
destination-github-username: 'IceWhaleTech' | ||
destination-repository-name: 'CasaOS-AppStore' | ||
target-branch: 'gh-pages' | ||
user-email: [email protected] | ||
target-directory: 'heads' | ||
target-directory: '' | ||
|
||
- name: Upload to oss | ||
id: upload_to_oss | ||
uses: tvrcgo/upload-to-oss@master | ||
with: | ||
key-id: ${{ secrets.OSS_KEY_ID }} | ||
key-secret: ${{ secrets.OSS_KEY_SECRET }} | ||
region: oss-cn-shanghai | ||
bucket: casaos | ||
assets: | | ||
/tmp/main.zip:/store/main.zip |