Skip to content

Commit

Permalink
fix: goreleaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ledif committed Feb 24, 2025
1 parent a55ec49 commit 0bcba4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
uses: actions/setup-go@v5

- name: Install goreleaser
uses: goreleaser/goreleaser-action@v4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: 'latest'

- name: Run goreleaser
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for GitHub releases
run: |
goreleaser release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ build:
go build -o build/xfconf-profile

release version="0.2.0":
git tag v{{version}}
git push origin v{{version}}

release-local version="0.2.0":
#!/bin/bash
. .env
git tag v{{version}}
Expand Down

0 comments on commit 0bcba4f

Please sign in to comment.