-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd9ca5b
commit 3889e17
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Sync rauc.txt to Aliyun OSS | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 或者您想要触发同步的分支名称 | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync-to-oss: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- 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: | | ||
rauc.txt:/IceWhaleTech/zimaos-rauc/hdz-test/rauc.txt |