BetterCombatCompatibilityDa.../.forgejo/workflows/publish.yml
Seaswimmer 60f47bfd42
Some checks failed
Publish to CoastalCommits and Modrinth / Build and Publish (push) Failing after 4s
Upload .zip file / Upload .zip file (push) Successful in 5s
added changelog and switched actions
2024-07-24 09:10:03 -04:00

33 lines
1.1 KiB
YAML

name: Publish to CoastalCommits and Modrinth
on:
push:
tags:
- '*'
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/mc-publish@3.3
with:
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
modrinth-id: ${{ vars.MODRINTH_PROJECT_ID }}
modrinth-featured: true
modrinth-unfeature-mode: 'any'
loaders: 'datapack'
changelog-file: CHANGELOG.md
name: 'Better Combat Compatibility ${{ github.event.release.tag_name }}'
files: BetterCombatCompat-${{ github.event.release.tag_name }}.zip
dependencies: '[{"project_id": "5sy6g3kz", "dependency_type": "required"}]'
api-domain: 'staging-api.modrinth.com'