the_vault-tweaks/.github/workflows/publish-to-curseforge.yaml
dependabot[bot] 318848c220
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 09:28:48 +00:00

51 lines
No EOL
1.3 KiB
YAML

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: Checkout source code
uses: actions/checkout@v4
- name: Download release artifacts
env:
GH_TOKEN: ${{ github.token }}
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: |
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
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