Skip to content

Commit

Permalink
Create mvn-deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams authored Oct 4, 2023
1 parent ff15f55 commit e55aae1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/mvn-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Maven Deploy

on:
push:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Maven build
run: mvn --file pom.xml package

deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Deploy to Github Package Registry
env:
GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn --settings settings.xml --file pom.xml deploy

0 comments on commit e55aae1

Please sign in to comment.