Skip to content

Commit

Permalink
Create release.yaml (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Apr 16, 2021
1 parent 9ed2214 commit 7d2b6c7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: Publish package
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_WORKSPACE: ${{ github.workspace }}
- uses: skjolber/maven-cache-github-action@v1
with:
step: save
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<layout>default</layout>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/rh-jmc-team/container-jfr-core</url>
</repository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit 7d2b6c7

Please sign in to comment.