Skip to content

Commit

Permalink
ci: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cethien committed Mar 31, 2024
1 parent 0452b5b commit 055b538
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ name: publish

on:
pull_request:
branches:
branches:
- main
push:
branches:
branches:
- main

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

- name: Setup Go
uses: actions/setup-go@v4
Expand All @@ -26,4 +34,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 comments on commit 055b538

Please sign in to comment.