Skip to content

Commit

Permalink
chore(extension-release-published.yml): configure Git user for Liquib…
Browse files Browse the repository at this point in the history
…ase bot

chore(extension-release-published.yml): prepare Maven release with Liquibase bot credentials and skip tests and deployment
chore(extension-release-published.yml): update branch with latest commits to get the latest pom.xml generated by release-prepare step
chore(extension-release-published.yml): get artifact ID for further use
  • Loading branch information
jandroav committed Aug 2, 2023
1 parent f6e4e70 commit 7b0b984
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,25 @@ on:

jobs:

release-prepare:
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit

release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Configure Git
run: |
git config user.name "liquibot"
git config user.email "[email protected]"
- name: Prepare Maven Release
run: |
mvn -B release:clean release:prepare -Dusername=liquibot -Dpassword=$GITHUB_TOKEN -Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" -DreleaseVersion=${{ github.event.inputs.liquibaseVersion }}
- 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
Expand Down

0 comments on commit 7b0b984

Please sign in to comment.