Skip to content

ci: 构建 8.1.0+fabric #3

ci: 构建 8.1.0+fabric

ci: 构建 8.1.0+fabric #3

Workflow file for this run

name: "Release"
on:
push:
tags:
- "v*"
jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle Wrapper
run: |
cd 1.17-1.17.1-fabric/
chmod +x gradlew
./gradlew build
env:
GITHUB_USERNAME: ${{ secrets.GH_PKG_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: 1.17-1.17.1-fabric/build/libs/*.jar