mirror of
https://github.com/Merith-TK/modpack-template.git
synced 2024-11-23 06:29:31 +00:00
36 lines
830 B
YAML
36 lines
830 B
YAML
|
name: Build Project
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main # Change this to your preferred branch
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Set up JDK
|
||
|
uses: actions/setup-java@v2
|
||
|
with:
|
||
|
java-version: '16' # Change to '8' for Java 8
|
||
|
|
||
|
- name: Install BusyBox and 7z
|
||
|
run: |
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install -y busybox p7zip-full
|
||
|
|
||
|
- name: Install Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: '1.20' # Specify the Go version you need
|
||
|
|
||
|
- name: Update Packwiz
|
||
|
run: make update-packwiz
|
||
|
|
||
|
- name: Make Modpack
|
||
|
run: make preClean multimc curseforge modrinth postClean
|