Skip to content

Commit

Permalink
Feature/fix build action (#7)
Browse files Browse the repository at this point in the history
* fixing build and publish action
  • Loading branch information
kingcdavid authored Apr 4, 2024
1 parent 8dab8af commit ff7d8be
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Publish
on: workflow_dispatch

jobs:
test:
build_and_publish:
strategy:
matrix:
go-version: [1.21.x]
Expand All @@ -14,19 +14,28 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

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

- name: Build Binaries
shell: bash
run:
./scripts/build-all-arch.sh

- name: Set version
run: VER=$(cat version.txt)
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
run: |
VER=$(cat version.txt)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/atlas-*
tag: $VER
overwrite: false
file_glob: true
tag_name: ${{ env.VERSION }}
name: Release ${{ env.VERSION }}
files: release/atlas-*
draft: true
prerelease: false

0 comments on commit ff7d8be

Please sign in to comment.