From 7d2b6c7cf855febee3e5ba29822219c7b19e90c4 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 16 Apr 2021 19:02:18 +0000 Subject: [PATCH] Create release.yaml (#82) --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ pom.xml | 7 +++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..36235e22 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 diff --git a/pom.xml b/pom.xml index 9153409c..b188a6bd 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,13 @@ default + + + github + GitHub Packages + https://maven.pkg.github.com/rh-jmc-team/container-jfr-core + + UTF-8