Skip to content

Commit 817cf8c

Browse files
committed
Add temporary runner for release.
1 parent 807a22f commit 817cf8c

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/release.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version for this release (e.g., 1.0.0)'
8+
required: true
9+
contributors:
10+
description: 'Contributors for this release'
11+
required: false
12+
default: ''
13+
14+
permissions:
15+
contents: write
16+
id-token: write
17+
18+
jobs:
19+
release:
20+
name: Create GitHub Release
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Download artifact
25+
uses: actions/download-artifact@v4
26+
with:
27+
name: patcher-${{ github.event.inputs.version }}
28+
path: dist/
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
- name: Generate changelog
34+
id: changelog
35+
uses: metcalfc/[email protected]
36+
with:
37+
myToken: ${{ secrets.GITHUB_TOKEN }}
38+
reverse: 'true'
39+
40+
- name: Create Release
41+
uses: softprops/[email protected]
42+
with:
43+
name: Patcher ${{ github.event.inputs.version }}
44+
tag_name: v${{ github.event.inputs.version }}
45+
draft: false
46+
prerelease: false
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
files: |
49+
./dist/*.tar.gz
50+
./dist/*.whl
51+
body: |
52+
This release has been automatically generated by a GitHub Action.
53+
54+
## Installation Instructions
55+
For detailed installation instructions, please refer to the [Docs](https://patcher.liquidzoo.io) or the [README](https://github.com/liquidz00/Patcher/blob/main/README.md)
56+
57+
## Release notes
58+
${{ steps.changelog.outputs.changelog }}
59+
60+
### Contributors
61+
${{ github.event.inputs.contributors }}

0 commit comments

Comments
 (0)