Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
xiewuzhiying committed Aug 4, 2024
1 parent 4f03e24 commit b88528c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build 1.20.1

on:
push:
branches:
- '1.20.1/**'
pull_request:
branches:
- '1.20.1/**'
workflow_dispatch:
branches:
- '1.20.1/**'
env:
JAVA_VERSION: 17
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
CURSEFORGE_ID: 1027757
MODRINTH_ID: nR8D9Tc2

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env

- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 17

- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew

- name: Build
run: ./gradlew clean build

- name: Artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: |
./common/build/libs/*
./fabric/build/libs/*
./forge/build/libs/*

0 comments on commit b88528c

Please sign in to comment.