Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukaato committed Jan 22, 2021
2 parents 39bfa50 + b4a9e84 commit 9c92b02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Maven Package

on:
release:
release:
types: [created]

jobs:
Expand All @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
- uses: actions/checkout@v2
uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
Expand All @@ -23,10 +23,7 @@ jobs:
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 -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: Build Java with Maven

on:
push:
Expand Down

0 comments on commit 9c92b02

Please sign in to comment.