Skip to content

Commit

Permalink
Merge pull request #3 from jtaczanowski/fix_release_GHA
Browse files Browse the repository at this point in the history
Fix release GHA
  • Loading branch information
jtaczanowski authored Jul 13, 2022
2 parents adeaaad + 2456222 commit 34b39b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create-release-when-new-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
go-version: '1.18.4' # The Go version to download (if necessary) and use.
- run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
- run: $Env:Path+= ";" + $Env:GOPATH + "\bin"; go generate
- run: go build -ldflags="-X 'main.Version=${{ github.ref }}' -H windowsgui" -o WiFi-export-import-${{ github.sha }}-x64.exe
- run: $Env:GOARCH="386"; go build -ldflags="-X 'main.Version=${{ github.ref }}' -H windowsgui" -o WiFi-export-import-${{ github.sha }}-x86.exe
- run: go build -ldflags="-X 'main.Version=${{github.ref_name}}' -H windowsgui" -o WiFi-export-import-${{github.ref_name}}-x64.exe
- run: $Env:GOARCH="386"; go build -ldflags="-X 'main.Version=${{github.ref_name}}' -H windowsgui" -o WiFi-export-import-${{github.ref_name}}-x86.exe
- name: Create Release
id: create_release
uses: actions/create-release@latest
Expand All @@ -37,8 +37,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./WiFi-export-import-${{ github.sha }}-x64.exe
asset_name: WiFi-export-import-${{ github.sha }}-x64.exe
asset_path: ./WiFi-export-import-${{github.ref_name}}-x64.exe
asset_name: WiFi-export-import-${{github.ref_name}}-x64.exe
asset_content_type: application/exe

- name: Upload Release Asset (x84)
Expand All @@ -48,6 +48,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./WiFi-export-import-${{ github.sha }}-x86.exe
asset_name: WiFi-export-import-${{ github.sha }}-x86.exe
asset_path: ./WiFi-export-import-${{github.ref_name}}-x86.exe
asset_name: WiFi-export-import-${{github.ref_name}}-x86.exe
asset_content_type: application/exe

0 comments on commit 34b39b4

Please sign in to comment.