File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff 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 : |
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
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
You can’t perform that action at this time.
0 commit comments