Skip to content

Commit

Permalink
Update release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmarty committed May 27, 2024
1 parent 5ffab9a commit 569916e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ on:
type: string

jobs:

build:
runs-on: ubuntu-latest
environment: release

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Tag version
run: |
git fetch --force --tags
git tag ${{ github.event.inputs.version }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.22

- name: Tag version
if: github.event_name == 'workflow_dispatch'
run: |
git fetch --force --tags
git tag --force ${{ github.event.inputs.version }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

0 comments on commit 569916e

Please sign in to comment.