chore: update tagging config #137
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
name: Bump tag version, create Sentry release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: samgozman | |
SENTRY_PROJECT: fin-thread | |
with: | |
version: ${{ steps.tag_version.outputs.new_tag }} | |
ignore_empty: true # exit silently if no new commits for a given release have been found | |
ignore_missing: true # will create a release with the default commits count instead of failing if no commits are found | |
# TODO: Add a step to create a release later | |
# - name: Create a GitHub release | |
# uses: ncipollo/release-action@v1 | |
# with: | |
# tag: ${{ steps.tag_version.outputs.new_tag }} | |
# name: Release ${{ steps.tag_version.outputs.new_tag }} | |
# body: ${{ steps.tag_version.outputs.changelog }} |