2024-07-24 08:27:41 -04:00
|
|
|
name: Publish to CoastalCommits and Modrinth
|
|
|
|
on:
|
2024-07-24 09:10:03 -04:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
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
|
|
|
|
|
2024-07-24 09:24:35 -04:00
|
|
|
- name: Set environment variables
|
2024-07-24 09:25:40 -04:00
|
|
|
uses: actions/env@v2.8.0
|
2024-07-24 09:24:35 -04:00
|
|
|
|
2024-07-24 08:27:41 -04:00
|
|
|
- name: ZIP the datapack
|
|
|
|
run: |
|
2024-07-24 09:24:35 -04:00
|
|
|
zip -r BetterCombatCompat-$CI_REF_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 09:10:52 -04:00
|
|
|
uses: actions/mc-publish@v3.3
|
2024-07-24 08:27:41 -04:00
|
|
|
with:
|
2024-07-24 09:10:03 -04:00
|
|
|
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
|
|
|
|
modrinth-id: ${{ vars.MODRINTH_PROJECT_ID }}
|
|
|
|
modrinth-featured: true
|
|
|
|
modrinth-unfeature-mode: 'any'
|
2024-07-24 08:27:41 -04:00
|
|
|
loaders: 'datapack'
|
2024-07-24 09:20:15 -04:00
|
|
|
game-versions: |
|
|
|
|
[1.20,1.20.1]
|
2024-07-24 09:17:38 -04:00
|
|
|
version-type: 'release'
|
2024-07-24 09:24:35 -04:00
|
|
|
version: '$CI_REF_NAME'
|
|
|
|
name: 'Better Combat Compatibility $CI_REF_NAME'
|
|
|
|
files: BetterCombatCompat-$CI_REF_NAME.zip
|
2024-07-24 09:17:38 -04:00
|
|
|
dependencies: |
|
|
|
|
better-combat@1.8.5+1.20.1-forge(required){modrinth:5sy6g3kz}
|
2024-07-24 08:27:41 -04:00
|
|
|
api-domain: 'staging-api.modrinth.com'
|