Skip to content

Commit

Permalink
[#24][#51] fix publishing config
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jul 23, 2020
1 parent aa29c5d commit fd3b9e5
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/mavenpublish.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
# Also see: https://docs.github.com/en/actions/language-and-framework-guides/publishing-java-packages-with-maven#publishing-packages-to-github-packages

name: Maven Package
name: Publish package to GitHub Packages

on:
release:
types: [created]

jobs:
build:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v1 # installs the JDK, and generates a Maven settings.xml for publishing the package to GitHub Packages
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
#server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
#settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -DskipTests -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
#run: mvn -DskipTests deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn -DskipTests deploy
run: mvn -DskipTests -B deploy
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd3b9e5

Please sign in to comment.