Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 3, 2025
1 parent 4199520 commit 48136e0
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ on:
push:
branches:
- main
tags:
- 'v*.*.*' # Trigger on semantic versioning tags
pull_request:
branches:
- main
push:
tags:
- 'v*.*.*' # Trigger on semantic versioning tags

permissions:
contents: write
Expand Down Expand Up @@ -66,17 +65,27 @@ jobs:
- name: Build for Linux ARM
run: |
GOOS=linux GOARCH=arm64 go build -o cli-tool-linux-arm64
- name: Upload Release Assets
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload x86_64 Binary
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cli-tool-linux-amd64
asset_name: cli-tool-linux-amd64
asset_content_type: application/octet-stream
- name: Upload ARM Release Asset
- name: Upload ARM Binary
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cli-tool-linux-arm64
asset_name: cli-tool-linux-arm64
asset_content_type: application/octet-stream

0 comments on commit 48136e0

Please sign in to comment.