-
Notifications
You must be signed in to change notification settings - Fork 3
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 #44 from liquibase/DAT-15071
chore(create-release.yml): update liquibase/build-logic version to v0…
- Loading branch information
Showing
4 changed files
with
24 additions
and
25 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
sonar: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].3 | ||
secrets: inherit | ||
|
||
create-release: | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,11 @@ on: | |
required: true | ||
|
||
jobs: | ||
|
||
release-prepare: | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit | ||
|
||
attach-to-release: | ||
name: Attach Artifact to Release | ||
if: github.event.pull_request.merged == true | ||
|
@@ -24,31 +29,25 @@ jobs: | |
|
||
- name: Get Reusable Script Files | ||
run: | | ||
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.2/.github/get_draft_release.sh | ||
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.2/.github/sign_artifact.sh | ||
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.2/.github/upload_asset.sh | ||
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.3/.github/get_draft_release.sh | ||
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.3/.github/sign_artifact.sh | ||
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.3/.github/upload_asset.sh | ||
chmod +x $PWD/.github/get_draft_release.sh | ||
chmod +x $PWD/.github/sign_artifact.sh | ||
chmod +x $PWD/.github/upload_asset.sh | ||
- name: Update branch with latest commits # needed for getting the latest pom.xml generated by release-prepare step | ||
run: | | ||
git pull origin ${{ env.GITHUB_REF_NAME }} | ||
git checkout HEAD~1 | ||
- name: Get Artifact ID | ||
id: get-artifact-id | ||
run: echo "artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" >> $GITHUB_ENV | ||
|
||
- name: Download artifact | ||
id: download-artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
github_token: ${{secrets.BOT_TOKEN}} | ||
workflow: test.yml | ||
pr: ${{github.event.pull_request.number}} | ||
name: ${{ env.artifact_id }}-artifacts | ||
path: ./assets | ||
repo: ${{ github.repository }} | ||
check_artifacts: true | ||
skip_unpack: false | ||
if_no_artifact_found: fail | ||
workflow_conclusion: "" | ||
- name: Build release artifacts | ||
id: build-release-artifacts | ||
run: mvn clean install -DskipTests | ||
|
||
- name: Get Release Tag | ||
id: get-release-tag | ||
|
@@ -77,15 +76,15 @@ jobs: | |
run: | | ||
gpg -K | ||
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
./.github/sign_artifact.sh ./assets/${{ env.artifact_id }}-${version}.jar | ||
./.github/sign_artifact.sh ./assets/${{ env.artifact_id }}-${version}.pom | ||
./.github/sign_artifact.sh ./assets/${{ env.artifact_id }}-${version}-javadoc.jar | ||
./.github/sign_artifact.sh ./assets/${{ env.artifact_id }}-${version}-sources.jar | ||
./.github/sign_artifact.sh ./target/${{ env.artifact_id }}-${version}.jar | ||
./.github/sign_artifact.sh ./target/${{ env.artifact_id }}-${version}.pom | ||
./.github/sign_artifact.sh ./target/${{ env.artifact_id }}-${version}-javadoc.jar | ||
./.github/sign_artifact.sh ./target/${{ env.artifact_id }}-${version}-sources.jar | ||
- name: Attach Files to Draft Release | ||
id: upload-release-asset | ||
run: ./.github/upload_asset.sh $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
ASSET_NAME_PREFIX: "${{ env.artifact_id }}-" | ||
ASSET_DIR: ./assets | ||
ASSET_DIR: ./target |
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 |
---|---|---|
|
@@ -78,5 +78,5 @@ jobs: | |
sonar-pr: | ||
needs: [ unit-test ] | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].3 | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -98,5 +98,5 @@ jobs: | |
sonar-pr: | ||
needs: [ unit-test ] | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].3 | ||
secrets: inherit |