Skip to content

Release

Release #39

Workflow file for this run

name: Release
on: [workflow_dispatch]
jobs:
push-to-prod-branch:
uses: ./.github/workflows/push-to-prod.yml
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Check Version and Exit early if server version
run: |
PACK_VERSION=$(grep 'version = ' "./pack.toml" | cut -d'=' -f2 | tr -d ' "')
echo "Version: PACK_VERSION"
if [[ "$PACK_VERSION" == *"-server" ]]; then
echo "Server version detected, exiting."
exit 0
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.1"
check-latest: true
cache: true
- name: Install Packwiz
run: go install github.com/packwiz/packwiz@latest
- name: Export Prism Pack
run: ./scripts/prism.sh
- name: Upload To Modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./scripts/upload.sh
- name: Capture Prism Pack & .mrpack
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: output