modpack-template/.github/workflows/release.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2024-10-10 19:34:10 +01:00
name: Release Modpack
on:
2024-11-05 19:59:24 +00:00
release:
types: [published]
2024-10-10 19:34:10 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '16' # Change to '8' for Java 8
- name: Install 7z
run: |
sudo apt-get update
sudo apt-get install -y p7zip-full
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.23'
- name: Update Packwiz
run: make update-packwiz
- name: Make Modpack
run: make preClean multimc curseforge modrinth postClean
- name: Make Modlist
run: make release-file
2024-11-05 19:59:24 +00:00
- name: Upload to Release
2024-10-10 19:34:10 +01:00
uses: ncipollo/release-action@v1
with:
2024-11-05 19:59:24 +00:00
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
2024-10-10 19:34:10 +01:00
artifacts: ".build/*"
allowUpdates: true
bodyFile: ".build/CHANGELOG.md"