fix: version number not set at build time after adding major version … #82
Workflow file for this run
This file contains 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: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-24.04 | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_PAT }} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Docker Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.DOCKER_HUB_PAT }} | |
- name: Snapcraft Login | |
uses: samuelmeuli/action-snapcraft@v2 | |
- | |
name: Install upx | |
run: | | |
sudo apt-get update | |
sudo apt-get install upx -y | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: 1.25.1 | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |