-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.16 KB
/
release.yml
File metadata and controls
54 lines (45 loc) · 1.16 KB
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
50
51
52
53
54
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
pull-requests: write
jobs:
checks:
name: Run Checks
uses: ./.github/workflows/ci.yml
release:
name: Create Release
needs: checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Extract tag
id: extract_tag
run: |
TAG=${GITHUB_REF#refs/tags/}
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "Tag: $TAG"
- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: git-cliff,typos-cli
- name: Generate changelog and release notes
run: |
./scripts/generate-changelog.sh
./scripts/generate-release-notes.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push changes
run: ./scripts/commit.sh ${{ steps.extract_tag.outputs.tag }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body_path: RELEASE_NOTES.md
draft: false
prerelease: false