Skip to content

更新到4.0.9b,支持1.19.4 #33

更新到4.0.9b,支持1.19.4

更新到4.0.9b,支持1.19.4 #33

Workflow file for this run

name: Publish on tag
on:
push:
tags:
- '*'
env:
JAVA_VERSION: 17
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 签出存储库
uses: actions/checkout@v3
with:
submodules: true
- name: 设置 Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
- name: 构建
run: ./gradlew :jar
- name: 发布(CurseForge/Modrinth/Github)
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 483760
curseforge-token: ${{ env.CURSEFORGE_TOKEN }}
modrinth-id: WMDesFsZ
modrinth-token: ${{ env.MODRINTH_TOKEN }}
github-token: ${{ env.GITHUB_TOKEN }}
name: IMBlocker-${{ github.ref_name }}
version-type: release
changelog-file: CHANGELOG.md
loaders: |
fabric
forge
game-versions: '1.19.4'
java: ${{ env.JAVA_VERSION }}