Skip to content

Commit

Permalink
Create build-1.18.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mlus-asuka authored Feb 19, 2024
1 parent 87346b1 commit 3ef34e4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-1.18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build-1.18

on:
push:
branches: [ "1.18.2" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
working-directory: ${{ github.workspace }}

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Build
id: build
uses: gradle/gradle-build-action@v2
with:
arguments: build
env:
SNAPSHOT: true

- name: Build Artifact
uses: actions/upload-artifact@v3
with:
name: Player_Sync
path: |
build/libs/

0 comments on commit 3ef34e4

Please sign in to comment.