-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.36 KB
/
github-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
name: "Create Releases"
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: 'Install OptiPNG'
run: sudo apt-get install -y optipng
- name: 'Optimize Images'
run: |
find . -name "*.png" -exec optipng -o9 {} \;
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Build Modpack
run: 'chmod +x ./gradlew && ./gradlew buildTargets'
- name: Generate changelog
run: 'python scripts/changelogger.py'
- name: Upload Release
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 3HsvIkiC
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
name: ""
modrinth-files:
- build/target/*.mrpack
github-files:
- build/target/*.mrpack
- build/target/*.zip
loaders:
- forge
game-versions:
- 1.20.1
version-type: beta
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-file: changelog.md
github-generate-changelog: true