-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#96: Now GitHub Packages is the snapshot repo in distributionManageme…
…nt. Refactored the snapshot-release to be a separate workflow, triggered by the finished build/push workflow.
- Loading branch information
1 parent
249d4bd
commit 99bea03
Showing
3 changed files
with
23 additions
and
14 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
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,22 @@ | ||
name: github-snapshot-release | ||
|
||
# Only trigger a SNAPSHOT release to GitHub Packages, when the build workflow succeeded | ||
on: | ||
workflow_run: | ||
workflows: ["github-push"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
publish-snapshot: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Java for publishing to GitHub Packages (only with Java 8) | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Publish SNAPSHOT version to GitHub Packages | ||
run: mvn -B --no-transfer-progress 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