forked from k1tbyte/Wand-Enhancer
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.25 KB
/
Copy pathrelease.yml
File metadata and controls
52 lines (42 loc) · 1.25 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
name: Release
on:
push:
tags:
- '*'
jobs:
publish-release:
if: github.repository == 'k1tbyte/Wand-Enhancer'
runs-on: windows-latest
permissions:
contents: write
env:
RELEASE_VERSION: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: web-panel/pnpm-lock.yaml
- name: Validate release metadata
shell: pwsh
run: ./scripts/validate-release-metadata.ps1 -ExpectedVersion $env:RELEASE_VERSION
- name: Extract release notes from changelog
shell: pwsh
run: ./scripts/get-changelog-section.ps1 -Version $env:RELEASE_VERSION -OutputPath release-notes.md
- name: Build release
shell: pwsh
run: ./build.ps1 -Configuration Release
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body_path: release-notes.md
files: CHANGELOG.md
fail_on_unmatched_files: true