Skip to content

Commit

Permalink
Add GH action for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyLV committed May 21, 2024
1 parent 5a1a3db commit b675657
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: '~> v1'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,16 @@ docker_manifests:
image_templates:
- "ghcr.io/lokalise/lokalise-cli-2:{{ .Tag }}-arm64v8"
- "ghcr.io/lokalise/lokalise-cli-2:{{ .Tag }}-amd64"

release:
github:
owner: lokalise
name: lokalise-cli-2-go
draft: true
replace_existing_draft: true
replace_existing_artifacts: true
target_commitish: "{{ .Commit }}"
prerelease: auto
make_latest: true
mode: append
name_template: "Release {{ .Tag }}"

0 comments on commit b675657

Please sign in to comment.