File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11name : Build
2+ permissions : all
23
34on :
45 push :
56 branches : [ "master" ]
67 pull_request :
78 branches : [ "master" ]
9+ release :
10+ types : [created]
811
912jobs :
1013 build :
11-
1214 runs-on : windows-latest
1315
1416 steps :
1517 - uses : actions/checkout@v4
1618 with :
1719 submodules : recursive
20+
1821 - uses : xmake-io/github-action-setup-xmake@v1
1922 with :
2023 xmake-version : latest
2124 actions-cache-folder : ' .xmake-cache'
2225 actions-cache-key : ' ci'
26+
2327 - name : build
2428 run : xmake -y --verbose
25- - name : Upload a Build Artifact
29+
30+ - name : Upload Artifacts
26312732 with :
2833 path : ./build/windows/
34+
35+ - name : Upload Release Assets
36+ if : github.event_name == 'release'
37+ uses : softprops/action-gh-release@v1
38+ with :
39+ files : ./build/windows/**/*
40+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments