Skip to content

Commit 165ea35

Browse files
Update xmake.yml
1 parent d73d538 commit 165ea35

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/xmake.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
name: Build
2+
permissions: all
23

34
on:
45
push:
56
branches: [ "master" ]
67
pull_request:
78
branches: [ "master" ]
9+
release:
10+
types: [created]
811

912
jobs:
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
2631
uses: actions/[email protected]
2732
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 }}

0 commit comments

Comments
 (0)