fix syntax error for yml
This commit is contained in:
35
.github/workflows/build_development.yml
vendored
Normal file
35
.github/workflows/build_development.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Development Builds
|
||||
|
||||
on:
|
||||
push: # Trigger on every push to the repository
|
||||
branches:
|
||||
- main # Specify the branch to run on (e.g., "main")
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4.6.0
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Rename build artifact
|
||||
run: mv build/libs/*.jar build/libs/nuggetmod-dev.jar
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4.5.0
|
||||
with:
|
||||
name: nuggetmod-dev
|
||||
path: build/libs/nuggetmod-dev.jar
|
||||
Reference in New Issue
Block a user