Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Create maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adabugra authored Aug 14, 2023
1 parent 84a3d3d commit 49a8de0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and upload jar

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/setup-java@v2
with:
distribution: 'corretto'
java-package: jdk
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn verify -B --file pom.xml
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Artifact name
name: TownyBlockBugFix
# A file, directory or wildcard pattern that describes what to upload
path: target/*

0 comments on commit 49a8de0

Please sign in to comment.