silent update checks, updates to latest tag release instead of source… #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Binaries | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| name: Build and Release Binaries | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.4' | |
| - name: Build Binaries | |
| run: | | |
| mkdir -p dist | |
| # Build macOS Intel | |
| GOOS=darwin GOARCH=amd64 go build -o dist/devd-darwin-amd64 main.go | |
| # Build macOS Apple Silicon (ARM) | |
| GOOS=darwin GOARCH=arm64 go build -o dist/devd-darwin-arm64 main.go | |
| # Build Linux Intel | |
| GOOS=linux GOARCH=amd64 go build -o dist/devd-linux-amd64 main.go | |
| # Build Linux ARM | |
| GOOS=linux GOARCH=arm64 go build -o dist/devd-linux-arm64 main.go | |
| # Build Windows Intel | |
| GOOS=windows GOARCH=amd64 go build -o dist/devd-windows-amd64.exe main.go | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/devd-darwin-amd64 | |
| dist/devd-darwin-arm64 | |
| dist/devd-linux-amd64 | |
| dist/devd-linux-arm64 | |
| dist/devd-windows-amd64.exe | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |