Skip to content

Commit 903ef93

Browse files
committed
测试git action
1 parent cbb5aec commit 903ef93

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Build
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "v*.*.*"
49

510
jobs:
611
build:
@@ -38,11 +43,17 @@ jobs:
3843
steps:
3944
- name: Download
4045
uses: actions/download-artifact@v2
46+
- name: Display structure of downloaded files
47+
run: ls -R
4148
- name: Release
4249
uses: softprops/action-gh-release@v1
4350
if: startsWith(github.ref, 'refs/tags/')
4451
with:
4552
generate_release_notes: true
46-
files: CodeFormat.zip
53+
files: |
54+
linux-x64.zip
55+
darwin-x64.zip
56+
darwin-arm64.zip
57+
win32-x64.zip
4758
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.RELEASE }}

0 commit comments

Comments
 (0)