Auto publish to MR and CF v2 (#471)

Co-authored-by: Madis Otenurm <Madis0@users.noreply.github.com>
This commit is contained in:
osfanbuff63 2022-09-16 11:32:51 -04:00 committed by GitHub
parent 58403c1d46
commit f293177476
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,24 @@ on:
release:
types: [published]
jobs:
publish-to-curseforge:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Download the pack files
run: curl -sLo "Fabulously Optimized-${{ steps.get_version.outputs.version }}.zip" https://github.com/Fabulously-Optimized/fabulously-optimized/releases/download/v${{ steps.get_version.outputs.version }}/Fabulously.Optimized-${{ steps.get_version.outputs.version }}.zip
- name: Publish to CurseForge
uses: Kir-Antipov/mc-publish@v3.2
with:
curseforge-id: 396246
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-files: '*.zip'
loaders: fabric
game-versions: 1.19.2
version: ${{ steps.get_version.outputs.version }} for 1.19.2 (CurseForge)
publish-to-modrinth:
runs-on: ubuntu-latest
steps:
@ -20,20 +38,3 @@ jobs:
modrinth-files: '*.mrpack'
loaders: fabric
game-versions: 1.19.2
publish-to-curseforge:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Download the pack files
run: curl -sLo "Fabulously Optimized-${{ steps.get_version.outputs.version }}.zip" https://github.com/Fabulously-Optimized/fabulously-optimized/releases/download/v${{ steps.get_version.outputs.version }}/Fabulously.Optimized-${{ steps.get_version.outputs.version }}.zip
- name: Publish to CurseForge
uses: Kir-Antipov/mc-publish@v3.2
with:
curseforge-id: 396246
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-files: '*.zip'
loaders: fabric
game-versions: 1.19.2