added action for cf publishing :)
This commit is contained in:
parent
6a32456f52
commit
fdc1b5e61d
2 changed files with 44 additions and 0 deletions
1
.github/workflows/create-release.yaml
vendored
1
.github/workflows/create-release.yaml
vendored
|
@ -25,6 +25,7 @@ jobs:
|
||||||
- name: Draft release
|
- name: Draft release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
artifacts: "build/libs/the_vault-tweaks-1.18.2-*.jar"
|
artifacts: "build/libs/the_vault-tweaks-1.18.2-*.jar"
|
||||||
bodyFile: "CHANGELOG.md"
|
bodyFile: "CHANGELOG.md"
|
||||||
draft: true
|
draft: true
|
||||||
|
|
43
.github/workflows/publish-to-curseforge.yaml
vendored
Normal file
43
.github/workflows/publish-to-curseforge.yaml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: Publish to Curseforge on release
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
- name: Download release artifacts
|
||||||
|
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 }}
|
||||||
|
|
||||||
|
files: *.jar
|
||||||
|
|
||||||
|
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
|
||||||
|
fail-mode: fail
|
Loading…
Reference in a new issue