Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename build artifacts and update upload paths in release workflow
Browse files Browse the repository at this point in the history
mattrust committed Dec 26, 2024

Verified

This commit was signed with the committer’s verified signature.
sourabhxyz Sourabh
1 parent f96097d commit 086e6d0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -29,21 +29,21 @@ jobs:
- name: Build project
run: |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then
GOOS=linux GOARCH=amd64 go build -o myproject-linux ./...
GOOS=linux GOARCH=amd64 go build -o iffmaster-linux ./cmd/iffmaster
elif [[ ${{ matrix.os }} == 'windows-latest' ]]; then
GOOS=windows GOARCH=amd64 go build -o myproject-windows.exe ./...
GOOS=windows GOARCH=amd64 go build -o iffmaster-windows.exe ./cmd/iffmaster
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then
GOOS=darwin GOARCH=amd64 go build -o myproject-macos ./...
GOOS=darwin GOARCH=amd64 go build -o iffmaster-macos ./cmd/iffmaster
fi
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: myproject-${{ matrix.os }}
name: iffmaster-${{ matrix.os }}
path: |
myproject-linux
myproject-windows.exe
myproject-macos
iffmaster-linux
iffmaster-windows.exe
iffmaster-macos
release:
needs: build
@@ -52,7 +52,7 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: myproject-${{ matrix.os }}
name: iffmaster-${{ matrix.os }}
path: .

- name: Create GitHub Release
@@ -73,8 +73,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: myproject-linux
asset_name: myproject-linux
asset_path: iffmaster-linux
asset_name: iffmaster-linux
asset_content_type: application/octet-stream

- name: Upload Release Asset (Windows)
@@ -84,8 +84,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: myproject-windows.exe
asset_name: myproject-windows.exe
asset_path: iffmaster-windows.exe
asset_name: iffmaster-windows.exe
asset_content_type: application/octet-stream

- name: Upload Release Asset (macOS)
@@ -95,6 +95,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: myproject-macos
asset_name: myproject-macos
asset_path: iffmaster-macos
asset_name: iffmaster-macos
asset_content_type: application/octet-stream

0 comments on commit 086e6d0

Please sign in to comment.