Skip to content

Commit

Permalink
Merge pull request #44 from liquibase/DAT-15071
Browse files Browse the repository at this point in the history
chore(create-release.yml): update liquibase/build-logic version to v0…
  • Loading branch information
jandroav authored Jul 13, 2023
2 parents decb2bc + 031969a commit f6776b8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f6776b8

Please sign in to comment.