-
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.
Merge pull request #57 from digipost/gh_release_action
Ta i bruk nyeste super-pom og action deploy for snapshot og release
- Loading branch information
Showing
7 changed files
with
104 additions
and
30 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,37 @@ | ||
name: Build snapshot | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
java: [ '1.8', '11' ] | ||
|
||
name: build java ${{ matrix.java }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven | ||
run: mvn -B package --no-transfer-progress --file pom.xml | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
name: deploy snapshot | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set release version | ||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}"-SNAPSHOT") | ||
- name: Build and deploy to Sonatype snapshot | ||
uses: digipost/[email protected] | ||
with: | ||
sonatype_secrets: ${{ secrets.sonatype_secrets }} | ||
release_version: ${{ env.RELEASE_VERSION }} | ||
perform_release: false |
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,21 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Release | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
- name: Set release version | ||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) | ||
- name: Release to Central Repository | ||
uses: digipost/[email protected] | ||
with: | ||
sonatype_secrets: ${{ secrets.sonatype_secrets }} | ||
release_version: ${{ env.RELEASE_VERSION }} | ||
perform_release: true |
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule ".travis"] | ||
path = .travis | ||
url = https://github.com/digipost/digipost-open-travis-config | ||
Submodule .travis
deleted from
e57885
This file was deleted.
Oops, something went wrong.
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