-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (59 loc) · 1.82 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Publish Release
on:
push:
branches:
- main
jobs:
changelog:
name: Generate Changelog & Publish Release
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.changelog.outputs.tag }}
skipped: ${{ steps.changelog.outputs.skipped }}
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
changelog: ${{ steps.changelog.outputs.changelog }}
release_id: ${{ steps.release.outputs.id }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
token: ${{ secrets.PRIVATE_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 16
- run: |
npm install [email protected]
npm install [email protected]
- name: Create changelog
id: changelog
uses: TriPSs/[email protected]
with:
github-token: ${{ secrets.PRIVATE_TOKEN }}
git-user-name: 'WynntilsBot'
git-user-email: '[email protected]'
skip-version-file: true
skip-git-pull: true
pre-release: false
release-count: 5
- name: Generate the output files
run: |
chmod +x ./zip.sh
./zip.sh
- name: Upload output
uses: actions/upload-artifact@v4
with:
name: output
path: output/*.zip
if-no-files-found: error
overwrite: true
- name: Create release
if: ${{ steps.changelog.outputs.skipped != 'true' }}
id: release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
files: output/*.zip