Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to build and upload Linodsync binary…
Browse files Browse the repository at this point in the history
… directly to build directory
  • Loading branch information
sanda0 committed Jan 12, 2025
1 parent dfc1bb9 commit 1cbb600
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,14 @@ jobs:

- name: Build static binary for Linux amd64
run: |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o linodsync
mkdir -p build
mv linodsync build/
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/linodsync
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: build/linodsync
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 1cbb600

Please sign in to comment.