Skip to content

Commit ff3d338

Browse files
committed
pipelines
1 parent 5cac7ea commit ff3d338

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@ jobs:
1313
- uses: actions/setup-go@v2
1414
with:
1515
go-version: '1.15' # The Go version to download (if necessary) and use.
16-
- name: Extract tag name
17-
id: tag
18-
uses: actions/[email protected]
19-
with:
20-
github-token: ${{ secrets.GITHUB_TOKEN }}
21-
script: |
22-
return context.payload.ref.replace(/\/refs\/tags\//, '');
16+
- name: Get the version
17+
id: get_version
18+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
19+
2320
- name: Update Version (ProductVersion)
2421
uses: deef0000dragon1/json-edit-action/@v1
2522
env:
2623
FILE: cmd/arcdps-log-uploader/_res/versioninfo.json
2724
KEY: StringFileInfo.ProductVersion
28-
VALUE: ${{ steps.tag.outputs.result }}
25+
VALUE: ${{ steps.get_version.outputs.VERSION }}
2926
- name: Update Version (FileVersion)
3027
uses: deef0000dragon1/json-edit-action/@v1
3128
env:
3229
FILE: cmd/arcdps-log-uploader/_res/versioninfo.json
3330
KEY: StringFileInfo.FileVersion
34-
VALUE: ${{ steps.tag.outputs.result }}
31+
VALUE: ${{ steps.get_version.outputs.VERSION }}
32+
3533
- run: make build_i386
3634
- run: make build_amd64
35+
3736
- name: "Zip Artifacts"
3837
run: find ./out -name '*_*.exe' -exec zip -j -D '{}.zip' '{}' \;
3938
- name: Build Changelog

0 commit comments

Comments
 (0)