Skip to content

Commit

Permalink
#928 prepare deploy to GH repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tfr42 committed Nov 21, 2023
1 parent 88fe1ed commit f3e3123
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
Expand All @@ -28,4 +26,19 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: sep3-parser
path: target/sep3-parser-*-jar-with-dependencies.jar
path: target/sep3-parser-*-jar-with-dependencies.jar
deploy:
if: github.ref.name == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build and Publish
run: mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f3e3123

Please sign in to comment.