Automatically generate releases from new tags (#114)
This commit is contained in:
committed by
GitHub
parent
34102792f5
commit
b1b3448dcb
@@ -1,10 +1,10 @@
|
|||||||
name: Tag + Bump version
|
name: Tag + Create Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tag:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -13,7 +13,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
- name: Bump version and push tag
|
- name: Create Tag 🏷️
|
||||||
|
id: create_tag
|
||||||
uses: anothrNick/github-tag-action@1.64.0
|
uses: anothrNick/github-tag-action@1.64.0
|
||||||
env:
|
env:
|
||||||
DEFAULT_BUMP: patch
|
DEFAULT_BUMP: patch
|
||||||
@@ -25,3 +26,16 @@ jobs:
|
|||||||
PATCH_STRING_TOKEN: PATCH
|
PATCH_STRING_TOKEN: PATCH
|
||||||
NONE_STRING_TOKEN: NONE
|
NONE_STRING_TOKEN: NONE
|
||||||
BRANCH_HISTORY: last
|
BRANCH_HISTORY: last
|
||||||
|
outputs:
|
||||||
|
tag: ${{ steps.create_tag.outputs.tag }}
|
||||||
|
release:
|
||||||
|
needs: [tag]
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: 🛎️ Create release
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
tag: ${{ needs.tag.outputs.tag }}
|
||||||
Reference in New Issue
Block a user