Browse Source

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

pull/85/head
dacrab 5 months ago
parent
commit
e54f1236ec
  1. 7
      .github/workflows/auto-tag.yml
  2. 1
      .github/workflows/release.yml

7
.github/workflows/auto-tag.yml

@ -45,4 +45,9 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
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

1
.github/workflows/release.yml

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

Loading…
Cancel
Save