BetterCombatCompatibilityDa.../.forgejo/workflows/publish.yml
Seaswimmer f5228746a7
Some checks failed
Upload .zip file / Upload .zip file (push) Successful in 6s
Publish to CoastalCommits and Modrinth / Build and Publish (release) Failing after 6s
lets try that again!
2024-07-24 08:57:36 -04:00

29 lines
958 B
YAML

name: Publish to CoastalCommits and Modrinth
on:
release:
types: [published]
jobs:
Build and Publish:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ZIP the datapack
run: |
zip -r BetterCombatCompat-${{ github.event.release.tag_name }}.zip data pack.mcmeta pack.png LICENSE README.md
- name: Publish to Modrinth
uses: actions/modrinth-publish@1.0.0
with:
token: ${{ secrets.MODRINTH_STAGING_RELEASE_TOKEN }}
project: ${{ vars.MODRINTH_PROJECT_ID }}
changelog: ${{ github.event.release.body }}
loaders: 'datapack'
file: BetterCombatCompat-${{ github.event.release.tag_name }}.zip
dependencies: '[{"project_id": "5sy6g3kz", "dependency_type": "required"}]'
api-domain: 'staging-api.modrinth.com'