-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (36 loc) · 1.2 KB
/
release.yml
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
41
42
43
44
45
name: Release management
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment-template: Thanks! Release {release_link} addresses this.
label-template: ":dart: landed,release-{release_tag}"
skip-label: dependencies
- uses: apexskier/github-semver-parse@v1
id: semver
with:
version: ${{ github.event.release.tag_name }}
# These use GITHUB_TOKEN, so they won't recurse and create more releases
- name: Tag
if: ${{ !steps.semver.outputs.prerelease && steps.semver.outputs.version }}
uses: richardsimko/[email protected]
with:
tag_name: ${{ format('v{0}', steps.semver.outputs.major) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag latest
if: ${{ !steps.semver.outputs.prerelease && steps.semver.outputs.version }}
uses: richardsimko/[email protected]
with:
tag_name: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}