File tree Expand file tree Collapse file tree 2 files changed +66
-1
lines changed
Expand file tree Collapse file tree 2 files changed +66
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: Build
22
33on :
44 workflow_dispatch :
5-
5+ push :
6+ pull_request :
7+ workflow_call :
68jobs :
79 run :
810 name : build
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+
8+ Compile :
9+ name : Compile
10+ uses : ./.github/workflows/build.yml
11+
12+ Release :
13+ name : Release
14+ needs : Compile
15+ runs-on : windows-latest
16+ env :
17+ Artifacts_Path : .artifacts
18+
19+ steps :
20+
21+ - name : Download .msix from artifacts
22+ uses : actions/download-artifact@v4
23+ with :
24+ merge-multiple : true
25+ path : ${{ env.Artifacts_Path }}
26+
27+ - name : Generate Tag
28+ run : |
29+ $releases = (gh release list --repo Xcube-Studio/FluentLauncher.Preview.Installer --limit 100 | Measure-Object -Line).Lines
30+
31+ major=1
32+ minor=0
33+ patch=0
34+
35+ $patch += $releases % 12
36+ $minor += [math]::Floor($releases / 12)
37+ $major += [math]::Floor($minor / 6)
38+ $minor %= 6
39+
40+ version="$major.$minor.$patch"
41+ echo "Generated version: $version"
42+ echo "version=$version" >> $GITHUB_ENV
43+
44+ - name : Create Release
45+ 46+ with :
47+ artifacts : " ${{ env.Artifacts_Path }}\\ *.*"
48+ allowUpdates : true
49+ generateReleaseNotes : true
50+ tag : " v${{ env.version }}"
51+
52+ - name : Upload Files To Oss
53+ uses : xcube-studio/sync2oss@v2
54+ with :
55+ repoUrl : " Xcube-Studio/FluentLauncher.Preview.Installer"
56+ accessKeyId : ${{ secrets.ALIYUN_ACCESSKEYID }}
57+ accessKeySecret : ${{secrets.ALIYUN_ACCESSKEYSECRET}}
58+ endpoint : ${{secrets.ALIYUN_OSS_ENDPOINT}}
59+ bucketName : ${{secrets.ALIYUN_OSS_BUCKETNAME_1}}
60+ region : " cn-shanghai"
61+ addSymlink : True
62+ fromRelease : True
63+ remoteDir : " FluentLauncher.Preview.Installer"
You can’t perform that action at this time.
0 commit comments