Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
Safelog4j
Commits
a2df06c4
Unverified
Commit
a2df06c4
authored
3 years ago
by
Jeff Williams
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Create maven-publish.yml
parent
807d09e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/maven-publish.yml
+34
-0
.github/workflows/maven-publish.yml
with
34 additions
and
0 deletions
+34
-0
.github/workflows/maven-publish.yml
0 → 100644
+
34
-
0
View file @
a2df06c4
# 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/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name
:
Maven Package
on
:
release
:
types
:
[
created
]
jobs
:
build
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up JDK
11
uses
:
actions/setup-java@v2
with
:
java-version
:
'
8'
distribution
:
'
adopt'
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 }}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help