Skip to content

Commit

Permalink
ci: add go release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aabouzaid committed Sep 10, 2023
1 parent ee50e88 commit 57c80fb
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Go - Release

on:
push:
# tags:
# - 'v*'
branches:
- "main"
workflow_dispatch: { }

permissions:
contents: read

jobs:
release:
name: Release
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
go-version: '1.21'
- name: Login to GitHub Container Registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@5fdedb94abba051217030cc86d4523cf3f02243d # v4
with:
distribution: goreleaser
version: latest
install-only: true
- name: Run Go Semantic Release
uses: go-semantic-release/action@1b14387401a1c3b588c807afd4ba4a921fd9cc31 # v1
with:
hooks: goreleaser
# custom-arguments: '--no-ci'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 57c80fb

Please sign in to comment.