Skip to content

Commit

Permalink
ci: use release-please to automate release versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Dec 18, 2023
1 parent fb2d50d commit 214301b
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,35 @@ name: Release

on:
push:
branches:
- main
tags:
- "v*"

jobs:
release:
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: go

lint:
uses: ./.github/workflows/lint.yml

test:
uses: ./.github/workflows/test.yml
release:
name: Create release

publish:
name: Publish artifacts
needs: [release, lint, test]
if: ${{ needs.release.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 214301b

Please sign in to comment.