feat: dashboard query time param #2
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*' | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.0' | |
| - name: Get version | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - name: Build for Linux AMD64 | |
| run: | | |
| GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-linux-amd64 . | |
| - name: Build for Linux ARM64 | |
| run: | | |
| GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-linux-arm64 . | |
| - name: Build for Windows AMD64 | |
| run: | | |
| GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-windows-amd64.exe . | |
| - name: Build for Windows ARM64 | |
| run: | | |
| GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-windows-arm64.exe . | |
| - name: Build for macOS AMD64 | |
| run: | | |
| GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-darwin-amd64 . | |
| - name: Build for macOS ARM64 | |
| run: | | |
| GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/LinPr/sqltui/cmd.Version=${{ steps.get_version.outputs.VERSION }}" -o sqltui-darwin-arm64 . | |
| - name: Create checksums | |
| run: | | |
| sha256sum sqltui-* > checksums.txt | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ steps.get_version.outputs.VERSION }} | |
| name: Release ${{ steps.get_version.outputs.VERSION }} | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| files: | | |
| sqltui-linux-amd64 | |
| sqltui-linux-arm64 | |
| sqltui-windows-amd64.exe | |
| sqltui-windows-arm64.exe | |
| sqltui-darwin-amd64 | |
| sqltui-darwin-arm64 | |
| checksums.txt | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |