Skip to content

Commit

Permalink
Update goreleaser action
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital committed Apr 30, 2024
1 parent fc3ae58 commit 90f77b4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- "main"
tags:
- 'v*'
pull_request:
- 'v*.*.*'
# pull_request:

env:
REGISTRY: ghcr.io
Expand All @@ -17,7 +17,7 @@ permissions:
packages: write

jobs:
goreleaserbuild:
build:
name: Build distribution binaries
runs-on: ubuntu-latest
steps:
Expand All @@ -26,7 +26,6 @@ jobs:
with:
fetch-depth: 0

# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -56,7 +55,7 @@ jobs:
- name: Upload assets
uses: actions/upload-artifact@v4
with:
name: autobrr
name: assets
path: |
dist/*.tar.gz
dist/*.zip
Expand Down Expand Up @@ -102,8 +101,8 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=semver,pattern={{version}},prefix=v
type=semver,pattern={{major}}.{{minor}},prefix=v
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=branch
type=ref,event=pr
flavor: |
Expand Down

0 comments on commit 90f77b4

Please sign in to comment.