automatically release mod when pushing tags
This commit is contained in:
parent
0e8527a9f1
commit
9ebcb65233
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
|
@ -5,10 +5,13 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '1.**'
|
- '1.**'
|
||||||
|
tags:
|
||||||
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -36,3 +39,15 @@ jobs:
|
||||||
name: Player_Sync
|
name: Player_Sync
|
||||||
path: |
|
path: |
|
||||||
build/libs/
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user