Skip to content

Commit a9d683a

Browse files
committed
feat: add GitHub Actions workflow for building and uploading assets to OSS
1 parent d9ab71c commit a9d683a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflow/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Run Build Dev"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup OSSUTIL
14+
uses: yizhoumo/setup-ossutil@v2
15+
with:
16+
endpoint: ${{ secrets.OSS_ENDPOINT }}
17+
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
18+
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
19+
ossutil-version: 'latest'
20+
21+
- name: Upload Assets to OSS
22+
run: |
23+
ossutil sync apps oss://apps-fit2cloud-com/stable/metersphere --update --delete --force

0 commit comments

Comments
 (0)