Skip to content

Commit 28d8b4a

Browse files
committed
update build
1 parent 9246466 commit 28d8b4a

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ jobs:
1616
- { os: macos-latest, target: darwin, platform: darwin-arm64}
1717
steps:
1818
- name: Env
19+
# set TAG=DEV if not a tag
1920
run: |
20-
if [[ ${{ github.ref }} == refs/tags/* ]]; then
21-
TAG=${{ github.ref }}
22-
TAG=${TAG#refs/tags/}
23-
echo echo "TAG=$TAG" >> $GITHUB_ENV
24-
else
25-
echo echo "TAG=DEV" >> $GITHUB_ENV
26-
fi
21+
if [[ "${{ github.ref }}" = refs/tags/* ]]; then
22+
export TAG= ${GITHUB_REF:10}
23+
else
24+
export TAG=DEV
25+
fi
26+
echo "TAG=${{env.TAG}}" >> $GITHUB_ENV
2727
shell: bash
28-
29-
- uses: actions/checkout@v2
28+
- name: Node.js
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: 16.x
32+
- uses: actions/checkout@v3
3033
- name: Build-windows
3134
if: startsWith(matrix.os, 'windows')
3235
run: |
@@ -58,7 +61,7 @@ jobs:
5861
5962
6063
- name: Upload
61-
uses: actions/upload-artifact@v2
64+
uses: actions/upload-artifact@v3
6265
with:
6366
name: ${{ matrix.platform }}
6467
path: ${{ github.workspace }}/artifact/bin
@@ -72,7 +75,7 @@ jobs:
7275
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7376
steps:
7477
- name: Download
75-
uses: actions/download-artifact@v2
78+
uses: actions/download-artifact@v3
7679
- name: Display structure of downloaded files
7780
run: ls -R
7881
- name: zip win32-x64

0 commit comments

Comments
 (0)