-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 976 Bytes
/
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
46
47
48
49
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions: {}
jobs:
ci:
name: CI
uses: FollowTheProcess/cli/.github/workflows/CI.yml@main
secrets: inherit
permissions:
contents: read
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
needs:
- ci
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Existing Tags
run: git fetch --force --tags
- name: Parse Release Version
id: version
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Publish Draft Release
uses: release-drafter/release-drafter@v6
with:
version: ${{ steps.version.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}