Skip to content

Commit

Permalink
fix(workflows): change branch reference from 'main' to 'master' in ex…
Browse files Browse the repository at this point in the history
…tension-release-prepare.yml to match repository default branch name

fix(workflows): remove unnecessary steps in extension-release-published.yml to improve build process efficiency
feat(workflows): add release-prepare job to extension-release-published.yml to prepare the release artifacts before publishing
  • Loading branch information
jandroav committed Aug 2, 2023
1 parent 156a11a commit 02fc6d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/extension-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main

- name: Set up JDK
uses: actions/setup-java@v2
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ jobs:
git config user.name "liquibot"
git config user.email "liquibot@liquibase.org"
- name: Prepare Maven Release
- name: Build release artifacts
id: build-release-artifacts
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
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 }} -DpushChanges=false
git reset HEAD~ --hard
- name: Get Artifact ID
id: get-artifact-id
Expand Down Expand Up @@ -68,4 +65,9 @@ jobs:
-Djavadoc=${{ env.artifact_id }}-${version}-javadoc.jar \
-Dfiles=${{ env.artifact_id }}-${version}.jar.asc,${{ env.artifact_id }}-${version}-sources.jar.asc,${{ env.artifact_id }}-${version}-javadoc.jar.asc,${{ env.artifact_id }}-${version}.pom.asc \
-Dtypes=jar.asc,jar.asc,jar.asc,pom.asc \
-Dclassifiers=,sources,javadoc,
-Dclassifiers=,sources,javadoc,
release-prepare:
needs: release
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.3.5
secrets: inherit

0 comments on commit 02fc6d8

Please sign in to comment.