Skip to content

Commit 29847c2

Browse files
authored
GitHub Actions: Add back publish major tag workflow (#61)
1 parent 1cff0f0 commit 29847c2

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Major Tag
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
inputs:
9+
tag_name:
10+
description: |
11+
Tag name that the major tag will point to. Examples: v1.2.3, 1.2.3
12+
required: true
13+
type: string
14+
15+
permissions: {}
16+
17+
jobs:
18+
publish:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Create GitHub App Token
22+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
23+
id: app-token
24+
with:
25+
client-id: ${{ vars.TASTENDRUCK_CLIENT_ID }}
26+
private-key: ${{ secrets.TASTENDRUCK_PRIVATE_KEY }}
27+
permission-contents: write
28+
permission-workflows: write
29+
30+
- uses: actions/publish-action@23f4c6f12633a2da8f44938b71fde9afec138fb4 # v0.4.0
31+
with:
32+
token: ${{ steps.app-token.outputs.token }}
33+
source-tag: ${{ inputs.tag_name || github.event.release.tag_name }}

0 commit comments

Comments
 (0)