Skip to content

Commit

Permalink
Create maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan authored Apr 26, 2021
1 parent e487901 commit 203419c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Maven Package

on:
release:
types: [created]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github
settings-path: ${{ github.workspace }}

- name: Building maven project
run: mvn -B package

- name: Publish to GitHub Packages
run: mvn deploy -s ${{ github.workspace }}/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 203419c

Please sign in to comment.