|
22 | 22 | - run: git fetch --force --tags |
23 | 23 | - name: install go-msi |
24 | 24 | run: choco install go-msi |
| 25 | + - name: get the version |
| 26 | + id: curver |
| 27 | + run: | |
| 28 | + $v = $(git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/v*") |
| 29 | + echo "ver=$(echo $v)" >> $env:GITHUB_OUTPUT |
| 30 | + - name: bump semver |
| 31 | + uses: actions-ecosystem/action-bump-semver@v1 |
| 32 | + id: bumpver |
| 33 | + with: |
| 34 | + current_version: ${{ steps.curver.outputs.ver }} |
| 35 | + level: major |
25 | 36 | - name: build-win-amd64 |
26 | 37 | run: go build -v -o bin/win64/${{env.BIN}}.exe |
27 | 38 | - name: build-win32 |
|
58 | 69 | $env:Path += ";C:\Program Files\go-msi;C:\Program Files (x86)\WiX Toolset v3.11\bin" |
59 | 70 | $env:TMP = "${{ runner.temp }}" |
60 | 71 | $env:Tempdir = "${{ runner.temp }}" |
61 | | - go-msi.exe make -p wix64.json -a amd64 --msi ${{env.BIN}}-setup-amd64.msi --version 1.0.2 |
62 | | - go-msi.exe make -p wix86.json -a 386 --msi ${{env.BIN}}-setup-x86.msi --version 1.0.2 |
| 72 | + go-msi.exe make -p wix64.json -a amd64 --msi ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-setup-amd64.msi --version 1.0.2 |
| 73 | + go-msi.exe make -p wix86.json -a 386 --msi ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-setup-x86.msi --version 1.0.2 |
63 | 74 | - name: pack things to zip |
64 | 75 | run: | |
65 | 76 | 7z a ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-windows-amd64.zip "./bin/win64/${{env.BIN}}.exe" ${{env.EXTRAFILES}} |
|
69 | 80 | 7z a ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-linux-x86.zip ./bin/linux-x86/${{env.BIN}} ${{env.EXTRAFILES}} |
70 | 81 | 7z a ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-darwin-amd64.zip ./bin/darwin-amd64/${{env.BIN}} ${{env.EXTRAFILES}} |
71 | 82 | 7z a ${{env.BIN}}-${{ steps.bumpver.outputs.new_version }}-darwin-arm64.zip ./bin/darwin-arm64/${{env.BIN}} ${{env.EXTRAFILES}} |
72 | | - - name: get the version |
73 | | - id: curver |
74 | | - run: | |
75 | | - $v = $(git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/v*") |
76 | | - echo "ver=$(echo $v)" >> $env:GITHUB_OUTPUT |
77 | | - - name: bump semver |
78 | | - uses: actions-ecosystem/action-bump-semver@v1 |
79 | | - id: bumpver |
80 | | - with: |
81 | | - current_version: ${{ steps.curver.outputs.ver }} |
82 | | - level: major |
83 | 83 | - name: push the tag |
84 | 84 | env: |
85 | 85 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments