Skip to content

Commit

Permalink
actions (#1)
Browse files Browse the repository at this point in the history
* Update maven-publish.yml
  • Loading branch information
sprytex authored Dec 5, 2024
1 parent 9ef1a58 commit 3a5fc0f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
name: Build and upload jar

on:
push:
branches: [ master ]

pull_request:
branches: [ master ]
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
java-version: '21'
- name: Build with Maven
run: mvn package --file pom.xml -Dmaven.compiler.failOnWarning=false
run: mvn -B package --file pom.xml
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: SnowballFight
# A file, directory or wildcard pattern that describes what to upload
path: target/*.jar

0 comments on commit 3a5fc0f

Please sign in to comment.