Skip to content

Commit

Permalink
pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyaren committed Apr 4, 2021
1 parent 5cac7ea commit ff3d338
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,26 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.15' # The Go version to download (if necessary) and use.
- name: Extract tag name
id: tag
uses: actions/github-script@0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Update Version (ProductVersion)
uses: deef0000dragon1/json-edit-action/@v1
env:
FILE: cmd/arcdps-log-uploader/_res/versioninfo.json
KEY: StringFileInfo.ProductVersion
VALUE: ${{ steps.tag.outputs.result }}
VALUE: ${{ steps.get_version.outputs.VERSION }}
- name: Update Version (FileVersion)
uses: deef0000dragon1/json-edit-action/@v1
env:
FILE: cmd/arcdps-log-uploader/_res/versioninfo.json
KEY: StringFileInfo.FileVersion
VALUE: ${{ steps.tag.outputs.result }}
VALUE: ${{ steps.get_version.outputs.VERSION }}

- run: make build_i386
- run: make build_amd64

- name: "Zip Artifacts"
run: find ./out -name '*_*.exe' -exec zip -j -D '{}.zip' '{}' \;
- name: Build Changelog
Expand Down

0 comments on commit ff3d338

Please sign in to comment.