Skip to content

补回来gradle.properties的配置 #34

补回来gradle.properties的配置

补回来gradle.properties的配置 #34

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
neoforge
game-versions: '1.20.4'
java: ${{ env.JAVA_VERSION }}