Skip to content

支持1.20.6

支持1.20.6 #35

Workflow file for this run

name: Publish on tag
on:
push:
tags:
- '*'
env:
JAVA_VERSION: 21
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
neoforge
game-versions: '1.20.4'
java: ${{ env.JAVA_VERSION }}