BetterCombatCompatibilityDa.../.forgejo/workflows/publish.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2024-07-24 08:27:41 -04:00
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
2024-07-24 08:37:20 -04:00
- name: Set environment variables
uses: actions/env@v2
2024-07-24 08:27:41 -04:00
- name: Set up Go
uses: actions/go@v2
with:
go-version: '>=1.20.1'
- name: ZIP the datapack
run: |
2024-07-24 08:37:20 -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: Release to CoastalCommits
uses: actions/upload-artifact@v3
with:
2024-07-24 08:37:20 -04:00
name: BetterCombatCompat-$CI_REF_NAME
2024-07-24 08:27:41 -04:00
files: |-
2024-07-24 08:37:20 -04:00
BetterCombatCompat-$CI_REF_NAME.zip
2024-07-24 08:40:23 -04:00
api_key: ${{ secrets.COASTALCOMMITSTOKEN }}
2024-07-24 08:27:41 -04:00
- name: Publish to Modrinth
uses: actions/modrinth-publish-action@v1
with:
token: ${{ secrets.MODRINTH_STAGING_RELEASE_TOKEN }}
project: ${{ vars.MODRINTH_PROJECT_ID }}
changelog: ${{ github.event.head_commit.message }}
loaders: 'datapack'
2024-07-24 08:37:20 -04:00
file: BetterCombatCompat-$CI_REF_NAME.zip
dependencies: "[{'project_id': `5sy6g3kz`, 'dependency_type': 'required'}]"
2024-07-24 08:27:41 -04:00
api-domain: 'staging-api.modrinth.com'