Skip to content

Commit

Permalink
Update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNex committed Jan 20, 2024
1 parent 2d33c84 commit bf8028d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
arch: [x86_64, aarch64]

steps:
- name: Build
- name: Build GNU/Linux
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand All @@ -40,7 +40,7 @@ jobs:
arch: [x86_64, aarch64]

steps:
- name: Build
- name: Build MacOS
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,36 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create Release
uses: softprops/action-gh-release@v1
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false

- name: Upload Release Assets
id: upload-release-assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: |
./tau-linux-aarch64
./tau-linux-x86_64
./tau-macos-aarch64
./tau-macos-x86_64
# ./tau-windows-x86_64
repo_token: ${{ secrets.GITHUB_TOKEN }}
# Add more artifacts as needed
asset_name: |
tau-linux-aarch64
tau-linux-x86_64
tau-macos-aarch64
tau-macos-x86_64
# Specify corresponding names for the added artifacts
asset_content_type: application/octet-stream

0 comments on commit bf8028d

Please sign in to comment.