-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 850 Bytes
/
publish-github.yml
File metadata and controls
40 lines (32 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'Publish GitHub Tag and Release'
on:
workflow_call:
inputs:
version:
type: string
description: 'The version to publish'
required: true
permissions:
checks: write
contents: write
jobs:
publish_tag:
name: Publish GitHub Tag and Release
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
- name: Create Tag
id: tag
uses: mathieudutour/github-tag-action@v6.1
with:
custom_tag: ${{ inputs.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
name: ${{ steps.tag.outputs.new_tag }}
tag: ${{ steps.tag.outputs.new_tag }}