2023-09-05 11:28:48 +02:00
|
|
|
name: Publish to Curseforge on release
|
2023-06-23 22:49:15 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Publish to Curseforge
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Set env
|
|
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
|
|
|
|
|
2023-07-13 17:39:17 +02:00
|
|
|
- name: Checkout source code
|
2023-09-05 11:28:48 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-07-13 17:39:17 +02:00
|
|
|
|
2023-06-23 22:49:15 +02:00
|
|
|
- name: Download release artifacts
|
2023-06-27 20:49:45 +02:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ github.token }}
|
2023-06-23 22:49:15 +02:00
|
|
|
run: gh release download ${{ github.ref_name }}
|
|
|
|
|
|
|
|
- name: Publish to Curseforge
|
|
|
|
uses: Kir-Antipov/mc-publish@v3.3
|
|
|
|
with:
|
|
|
|
curseforge-id: 877136
|
|
|
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
|
|
|
|
2023-06-23 22:55:03 +02:00
|
|
|
files: |
|
2023-07-13 18:10:42 +02:00
|
|
|
the_vault-tweaks-1.18.2-${{ env.RELEASE_VERSION }}.jar
|
|
|
|
the_vault-tweaks-1.18.2-${{ env.RELEASE_VERSION }}-javadoc.jar
|
|
|
|
the_vault-tweaks-1.18.2-${{ env.RELEASE_VERSION }}-sources.jar
|
2023-06-23 22:49:15 +02:00
|
|
|
|
|
|
|
name: ""
|
|
|
|
version: 1.18.2-${{ env.RELEASE_VERSION }}
|
|
|
|
version-type: release
|
|
|
|
changelog-file: CHANGELOG.md
|
|
|
|
|
|
|
|
loaders: |
|
|
|
|
forge
|
|
|
|
game-versions: |
|
|
|
|
1.18.2
|
|
|
|
java: |
|
|
|
|
17
|
|
|
|
|
|
|
|
retry-attempts: 2
|
|
|
|
retry-delay: 10000
|
2024-02-18 23:40:58 +01:00
|
|
|
fail-mode: fail
|