-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.05 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
name: "Create GitHub release"
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 -o7 {} \;
- 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: ncipollo/release-action@v1
with:
generateReleaseNotes: true
bodyFile: 'changelog.md'
artifacts: 'build/target/*.zip,build/target/*.mrpack'
token: ${{ secrets.GITHUB_TOKEN }}