add publish workflow
All checks were successful
Upload .zip file / Upload .zip file (push) Successful in 6s
All checks were successful
Upload .zip file / Upload .zip file (push) Successful in 6s
This commit is contained in:
parent
3b88ca226a
commit
8bb37e1870
1 changed files with 42 additions and 0 deletions
42
.forgejo/workflows/publish.yml
Normal file
42
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
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 up Go
|
||||
uses: actions/go@v2
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
|
||||
- name: ZIP the datapack
|
||||
run: |
|
||||
zip -r BetterCombatCompat.zip data pack.mcmeta pack.png LICENSE README.md
|
||||
|
||||
- name: Release to CoastalCommits
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: BetterCombatCompat
|
||||
files: |-
|
||||
BetterCombatCompat.zip
|
||||
|
||||
- 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'
|
||||
file: BetterCombatCompat.zip
|
||||
dependencies: [{'project_id': `5sy6g3kz`, 'dependency_type': 'required'}]
|
||||
api-domain: 'staging-api.modrinth.com'
|
Loading…
Reference in a new issue