This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31ad103
commit 2d7efe8
Showing
6 changed files
with
51 additions
and
69 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 |
---|---|---|
|
@@ -18,10 +18,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
service: [ rabbit-hole, demo-app ] | ||
artifact: [ rabbit-hole, demo-app ] | ||
runs-on: ubuntu-latest | ||
env: | ||
APPLICATION_NAME: ${{ matrix.service }} | ||
steps: | ||
|
||
- name: Install Java | ||
|
@@ -49,8 +47,7 @@ jobs: | |
id: build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew ${{ matrix.service }}:build | ||
|
||
run: ./gradlew ${{ matrix.artifact }}:build | ||
|
||
- uses: codecov/[email protected] | ||
with: | ||
|
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,45 +1,42 @@ | ||
# This action should be triggered on any PR merge to our main branch | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
artifact: | ||
name: Artifact | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
service: [ rabbit-hole ] | ||
artifact: [ rabbit-hole ] | ||
|
||
steps: | ||
|
||
- name: Install Java | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v2.4.0 | ||
with: | ||
java-version: 11 | ||
distribution: 'adopt' | ||
|
||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- uses: actions/[email protected] | ||
|
||
- name: Get Release Tag | ||
id: previoustag | ||
uses: WyriHaximus/[email protected] | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::$(git describe --tags | cut -d- -f 1) | ||
|
||
- name: Set Artifact Version | ||
run: | | ||
echo Artifact version: ${{ steps.previoustag.outputs.tag }} | ||
echo "version=${{ steps.previoustag.outputs.tag }}" > gradle.properties | ||
echo Artifact version: ${{ steps.get_version.outputs.VERSION }} | ||
echo "version=${{ steps.get_version.outputs.VERSION }}" > gradle.properties | ||
- name: Gradle Build Artifact | ||
id: build | ||
- name: Build Artifact | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew ${{ matrix.service }}:build | ||
run: ./gradlew ${{ matrix.artifact }}:build | ||
|
||
- name: Publish Artifact | ||
id: build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew ${{ matrix.service }}:publish | ||
run: ./gradlew ${{ matrix.artifact }}:publish |
31 changes: 0 additions & 31 deletions
31
buildSrc/src/main/groovy/rabbit-hole.publishing-conventions.gradle
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