ci: add release-please workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow creates a release pull request whenever a change is pushed to 'main'. | |
# When the release pull request is merged into 'main', it will automatically create and tag a new | |
# release version. | |
name: Release automation | |
on: | |
push: | |
branches: | |
- "main" | |
- "hotfix/*" | |
- "feat/upgrade" | |
jobs: | |
release-please: | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Create a new release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.BLACKLIGHT_RELEASE_TOKEN }} | |
target-branch: ${{ github.ref_name }} |