chore: Rename config dir to .qmax, env vars to QMAX_ #4
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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23" | |
| - name: Test | |
| run: go test ./... | |
| - name: Build all targets | |
| run: | | |
| mkdir -p build | |
| GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o build/qmax-darwin-amd64 . | |
| GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o build/qmax-darwin-arm64 . | |
| GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/qmax-linux-amd64 . | |
| GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build/qmax-windows-amd64.exe . | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| build/qmax-darwin-amd64 | |
| build/qmax-darwin-arm64 | |
| build/qmax-linux-amd64 | |
| build/qmax-windows-amd64.exe |