Skip to content

Commit

Permalink
feat: automatic build
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoDuoJuZi authored Dec 20, 2024
1 parent 145f337 commit 7d239c2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Legacy Lands Library

on:
push:
branches: [ "main" ]

jobs:
shadowJar:
name: shadow
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'

- name: Make gradlew executable
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew shadowJar

- name: Set outputs
id: short_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Get Repository Name
uses: MariachiBear/[email protected]

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.repo-name.outputs.repository-name }} ${{ steps.short_sha.outputs.sha_short }}
path: build/libs/*.jar

0 comments on commit 7d239c2

Please sign in to comment.