Merge pull request #64 from EoD/automatic-releases

Automatic Mod Releases
This commit is contained in:
mlus 2025-05-05 01:37:18 +08:00 committed by GitHub
commit 110a2baaa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,17 @@
name: Build-1.20
name: Build
on:
pull_request:
push:
branches:
- '1.**'
tags:
- '**'
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
@ -36,3 +39,15 @@ jobs:
name: Player_Sync
path: |
build/libs/
- uses: Kir-Antipov/mc-publish@v3.3
# run only on tags, no other pushes
if: startsWith( github.ref, 'refs/tags' )
with:
modrinth-id: 4pmkajBP
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 737274
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}