Debian Codegraph @

.github/workflows/publish.yml

raw
1 #
2 # Publish Releases
3 #
4 # This workflow can be manually triggered and will then publish the
5 # specified release to the configured release channels.
6 #
7
8 name: "Publish Releases"
9
10 on:
11 workflow_dispatch:
12 inputs:
13 tag:
14 description: "Git-Tag to Publish"
15 default: ""
16 required: true
17
18 concurrency:
19 cancel-in-progress: false
20 group: "publish"
21
22 defaults:
23 run:
24 shell: "bash"
25
26 jobs:
27 publish:
28 name: "Publish GitHub"
29
30 env:
31 CTX_GITHUB_EVENT_INPUTS_TAG: ${{ github.event.inputs.tag }}
32 permissions:
33 contents: write
34 runs-on: "ubuntu-latest"
35
36 steps:
37 - name: "Verify Input"
38 run: |
39 if [[ -z "${CTX_GITHUB_EVENT_INPUTS_TAG}" ]] ; then
40 echo "error: empty git-tag specified as input"
41 exit 1
42 fi
43
44 - name: "Clone Repository"
45 uses: actions/checkout@v4
46 with:
47 ref: ${{ github.event.inputs.tag }}
48
49 - name: "Publish GitHub"
50 uses: readaheadeu/rae-actions/publish-github@v1
51 with:
52 ghtoken: ${{ secrets.GITHUB_TOKEN }}
53 tag: ${{ github.event.inputs.tag }}