ci: make release workflow reusable and call it from auto-tag

This commit is contained in:
dacrab 2024-12-27 13:07:03 +02:00
parent 98537b94f9
commit e54f1236ec
2 changed files with 7 additions and 1 deletions

View File

@ -45,4 +45,9 @@ jobs:
git config --global user.name 'github-actions[bot]' git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com' git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git tag -a $new_tag -m "Release $new_tag" git tag -a $new_tag -m "Release $new_tag"
git push origin $new_tag git push origin $new_tag
release:
needs: auto-tag
uses: ./.github/workflows/release.yml
secrets: inherit

View File

@ -1,6 +1,7 @@
name: Release name: Release
on: on:
workflow_call:
push: push:
tags: tags:
- 'v*' - 'v*'