Skip to content

Commit

Permalink
feat: add sync action
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Sep 5, 2024
1 parent fd9ca5b commit 3889e17
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rauc.yaml
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

0 comments on commit 3889e17

Please sign in to comment.