chore: bump version to 0.6.1 #50
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 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run tests | |
| run: go test ./... -v | |
| - name: Get version from tag | |
| id: version | |
| run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - name: Cross-compile | |
| env: | |
| BUILD_VERSION: ${{ steps.version.outputs.version }} | |
| run: | | |
| LDFLAGS="-X main.version=${BUILD_VERSION}" | |
| for GOOS in darwin linux; do | |
| for GOARCH in amd64 arm64; do | |
| output="claude-sync-${GOOS}-${GOARCH}" | |
| echo "Building ${output}..." | |
| GOOS=$GOOS GOARCH=$GOARCH go build -ldflags "$LDFLAGS" -o "$output" ./cmd/claude-sync | |
| done | |
| done | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: claude-sync-* |