2024-07-24 08:27:41 -04:00
|
|
|
name: Publish to CoastalCommits and Modrinth
|
|
|
|
on:
|
2024-07-24 08:53:28 -04:00
|
|
|
release:
|
|
|
|
types: [published]
|
2024-07-24 08:27:41 -04:00
|
|
|
|
|
|
|
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: |
|
2024-07-24 08:53:28 -04:00
|
|
|
zip -r BetterCombatCompat-${{ github.event.release.tag_name }}.zip data pack.mcmeta pack.png LICENSE README.md
|
2024-07-24 08:27:41 -04:00
|
|
|
|
|
|
|
- name: Publish to Modrinth
|
2024-07-24 08:43:14 -04:00
|
|
|
uses: actions/modrinth-publish@1.0.0
|
2024-07-24 08:27:41 -04:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.MODRINTH_STAGING_RELEASE_TOKEN }}
|
|
|
|
project: ${{ vars.MODRINTH_PROJECT_ID }}
|
2024-07-24 08:53:28 -04:00
|
|
|
changelog: ${{ github.event.release.body }}
|
2024-07-24 08:27:41 -04:00
|
|
|
loaders: 'datapack'
|
2024-07-24 08:53:28 -04:00
|
|
|
file: BetterCombatCompat-${{ github.event.release.tag_name }}.zip
|
2024-07-24 08:57:36 -04:00
|
|
|
dependencies: '[{"project_id": "5sy6g3kz", "dependency_type": "required"}]'
|
2024-07-24 08:27:41 -04:00
|
|
|
api-domain: 'staging-api.modrinth.com'
|