forked from entur/rutebanken-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to publish to GitHub Packages
- also removed entur's own jfrog repository for now from pom.xml - temporarily disabled the running of unit tests before publishing as the pubsub-emulator dependency is unavailable
- Loading branch information
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Publish package to GitHub Packages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
publish: | ||
name: Publish package to GitHub Packages | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract metadata to env variables | ||
uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 | ||
|
||
- name: Publish to Github Packages | ||
# if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
# temporarily removing unit tests from the process as a dependent package (pubsub-emulator) is unavailable | ||
mvn --batch-mode -DskipTests -Dentur.google.pubsub.emulator.download.skip=true deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters