Skip to content

Commit

Permalink
ci: modify release action
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <simone.ragonesi@sighup.io>
  • Loading branch information
R3DRUN3 committed Nov 28, 2023
1 parent 693f7ef commit 9cd249e
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: releaser

on:
push:
Expand All @@ -11,24 +11,14 @@ permissions:
# issues: write

jobs:
goreleaser:
releaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1

build-and-publish-oci:
runs-on: ubuntu-latest
permissions: write-all
Expand All @@ -40,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: '1.21'

- name: Convert Repository Name to Lowercase
id: lowercase
Expand Down

0 comments on commit 9cd249e

Please sign in to comment.