BetterCombatCompatibilityDa.../.forgejo/workflows/publish.yml
Seaswimmer d4b03ca83c
Some checks failed
Publish to CoastalCommits and Modrinth / Build and Publish (push) Failing after 6s
Upload .zip file / Upload .zip file (push) Successful in 6s
maybe that fixes it idk
2024-07-24 09:28:25 -04:00

40 lines
1.2 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: Set environment variables
uses: actions/env@v2.8.0
- name: ZIP the datapack
run: |
zip -r BetterCombatCompat-$CI_ACTION_REF_NAME_SLUG.zip data pack.mcmeta pack.png LICENSE README.md
- name: Publish to Modrinth
uses: actions/mc-publish@v3.3
with:
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
modrinth-id: ${{ vars.MODRINTH_PROJECT_ID }}
modrinth-featured: true
modrinth-unfeature-mode: 'any'
loaders: 'datapack'
game-versions: |
[1.20,1.20.1]
version-type: 'release'
version: '$CI_ACTION_REF_NAME'
name: 'Better Combat Compatibility $CI_ACTION_REF_NAME'
files: BetterCombatCompat-$CI_ACTION_REF_NAME_SLUG.zip
dependencies: |
better-combat@1.8.5+1.20.1-forge(required){modrinth:5sy6g3kz}
api-domain: 'staging-api.modrinth.com'