Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAT-15071 automatically bump version via the release workflow #388

Merged
merged 111 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
7a5a9cc
fix(pom.xml): change git connection URL to use HTTPS instead of HTTP …
Jun 27, 2023
f4af30f
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
246a45a
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
1b9101f
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.1-SNAPS…
Jun 27, 2023
b4e963d
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
cef147c
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
2b18b62
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.4-SNAPS…
Jun 27, 2023
0c50642
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
48d3543
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
0d9775e
chore: update extension version from 4.23.1-SNAPSHOT to 4.21.1-SNAPSH…
Jun 27, 2023
9f88aeb
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
bbd696f
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
ba44d1b
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.1-SNAPS…
Jun 27, 2023
4491e8f
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
3a4af8b
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
0870ed6
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.1-SNAPS…
Jun 27, 2023
3f365b6
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
fa6fea3
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
66eabcd
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.1-SNAPS…
Jun 27, 2023
e8bf946
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
2175793
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
860e3f8
[Version Bumped to 4.23.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
6f7e7c9
[Version Bumped to 4.23.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
158ee46
chore: downgrade liquibase-mongodb version from 4.23.1-SNAPSHOT to 4.…
Jun 27, 2023
6f815c7
refactor(create-release.yml): remove integration-tests job from needs…
Jun 27, 2023
89245ae
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
7d0a1b3
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
3717e4b
chore(pom.xml): downgrade liquibase-mongodb version from 4.23.1-SNAPS…
Jun 27, 2023
775d675
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 27, 2023
2f5c723
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 27, 2023
5f9bfbb
[Version Bumped to 4.23.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
3a73ccd
[Version Bumped to 4.23.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
e02a30d
chore(create-release.yml): remove unused release-prepare and release-…
Jun 28, 2023
e4e8e06
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
7903aa2
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
400d53d
chore(create-release.yml): remove extra whitespace in the file for co…
Jun 28, 2023
47193f9
chore(create-release.yml): remove unnecessary whitespace
Jun 28, 2023
0128089
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
5cd39a8
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
3cf7ccb
chore(create-release.yml): reorder jobs to improve readability and ma…
Jun 28, 2023
ba09e8e
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
9201981
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
e7e9ca1
chore(release-published.yml): rename the name of the release workflow…
Jun 28, 2023
bd1a241
chore(create-release.yml): add dependency on 'setup' job in 'release-…
Jun 28, 2023
920e836
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
436b68c
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
53fa272
chore(create-release.yml): remove unnecessary steps in the workflow
Jun 28, 2023
c7a320b
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
67d6b10
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
9807d49
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
c8e34e3
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
41e4f53
fix(create-release.yml): add step to checkout repository with proper …
Jun 28, 2023
7adba0c
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
c5c17ac
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
5abadb1
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
464643f
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
b4dae74
fix(create-release.yml): remove curly braces around GITHUB_REF_NAME t…
Jun 28, 2023
3288511
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
917e616
fix(create-release.yml): fix reference to GITHUB_REF_NAME environment…
Jun 28, 2023
ff6c8a9
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
8a086f9
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
76f0ae4
chore(create-release.yml): update branch with latest commits before c…
Jun 28, 2023
58de863
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
d6f814a
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
676302e
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
a2e3b49
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
c80bda2
fix(create-release.yml): change git pull command to git checkout HEAD…
Jun 28, 2023
542d795
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
c169db4
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
950dc80
fix(create-release.yml): update branch with latest commits before cac…
Jun 28, 2023
c95e634
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
1c37d32
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
2262a7d
chore(release-published.yml): remove deploy_xsd job as it is no longe…
Jun 28, 2023
8d222d4
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
f4d945a
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
cd3ae4c
fix(release-published.yml): fix typo in the URL parameter of the Mave…
Jun 28, 2023
63a82ae
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
4285071
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
63840a6
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
aa76231
fix(release-published.yml): remove unnecessary target directory from …
Jun 28, 2023
c2becae
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
35b93e5
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
cf3957e
chore(create-release.yml): include pom.xml in the files to be include…
Jun 28, 2023
517f8a1
Merge branch 'DAT-15071' of https://github.com/liquibase/liquibase-mo…
Jun 28, 2023
03eaf58
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
350b8e7
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
6e9af6b
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
c795828
chore(create-release.yml): update file path for jar file in release c…
Jun 28, 2023
1e458d0
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
6baa6a8
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
94c91a6
fix(release-published.yml): update Maven Central Repository URL to fi…
Jun 28, 2023
6665885
chore(pom.xml): update liquibase-mongodb version from 4.23.1-SNAPSHOT…
Jun 28, 2023
95e1a6b
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
897e022
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
8a8ae8e
chore(release-published.yml): add test step to get the latest pom.xml…
Jun 28, 2023
f7e3091
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
1f7a589
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
d28c627
chore(release-published.yml): remove unnecessary test step in the wor…
Jun 28, 2023
da35cd4
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
0fcc78d
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
9f3f1dc
fix(release-published.yml): add missing -DpomFile=pom.xml flag to the…
Jun 28, 2023
ce35a40
[Version Bumped to 4.23.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
c16a243
[Version Bumped to 4.23.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
10fef4c
fix(release-published.yml): remove unnecessary arguments from mvn dep…
Jun 28, 2023
2a2a9a7
[Version Bumped to 4.21.1-SNAPSHOT] prepare release liquibase-mongodb…
liquibot Jun 28, 2023
3ec383f
[Version Bumped to 4.21.1-SNAPSHOT] prepare for next development iter…
liquibot Jun 28, 2023
2ebf9a6
fix(release-published.yml): update Maven deploy command to use correc…
Jun 28, 2023
ab8aa87
chore(release-published.yml): add workflow step to upload xsds to S3 …
Jun 28, 2023
d81f9d3
chore(create-release.yml): add integration tests job to test the appl…
Jun 28, 2023
b09cd4a
chore(create-release.yml): add integration-tests job as a dependency …
Jun 28, 2023
7b699ea
Merge branch 'main' into DAT-15071
jandroav Jun 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ jobs:
echo "Saw Extension version ${{ steps.collect-data.outputs.extensionVersion }}"

release-prepare:
uses: liquibase/build-logic/.github/workflows/[email protected]
with:
perform-release: false
perform-rollback: false
uses: liquibase/build-logic/.github/workflows/[email protected]
needs: [ setup ]
secrets: inherit

build:
name: "Build and Test"
runs-on: ubuntu-latest
needs: setup
needs: [ setup, release-prepare]
outputs:
releaseSha: ${{ steps.get-release-sha.outputs.releaseSha }}
steps:
Expand All @@ -57,6 +55,11 @@ jobs:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

- 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: Cache Built Code
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -102,6 +105,7 @@ jobs:
name: liquibase-mongodb
path: |
target/*.jar
pom.xml

integration-tests:
name: Java ${{ matrix.java }}
Expand Down Expand Up @@ -147,24 +151,12 @@ jobs:
tag_name: liquibase-mongodb-${{ needs.setup.outputs.extensionVersion }}
draft: true
body: Support for Liquibase ${{ needs.setup.outputs.liquibaseVersion }}.
files: liquibase-mongodb-*.jar
files: target/liquibase-mongodb-*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-perform:
needs: [ setup, release-prepare, build, integration-tests, draft-release ]
if: ${{ success() }}
uses: liquibase/build-logic/.github/workflows/[email protected]
with:
perform-release: true
perform-rollback: false
secrets: inherit

release-rollback:
needs: [ setup, release-prepare, build, integration-tests, draft-release ]
if: ${{ failure() }}
uses: liquibase/build-logic/.github/workflows/[email protected]
with:
perform-release: false
perform-rollback: true
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
17 changes: 15 additions & 2 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,26 @@ jobs:
gpg-private-key: ${{ secrets.GPG_SECRET }}
gpg-passphrase: GPG_PASSPHRASE

- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.BOT_TOKEN}}
workflow: create-release.yml
name: liquibase-mongodb
check_artifacts: true
skip_unpack: false
if_no_artifact_found: fail
workflow_conclusion: ""

- name: Publish to the Maven Central Repository
run: mvn clean deploy -Dmaven.test.skip -P release
run: mvn deploy:deploy-file -Dfile=./target/${{ github.event.release.tag_name}}.jar -Dmaven.test.skip -DrepositoryId=sonatype-nexus-staging -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2-fail -DpomFile=pom.xml -P release
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}


deploy_xsd:
name: Upload xsds
runs-on: ubuntu-20.04
Expand All @@ -50,7 +63,6 @@ jobs:
# aws s3 sync syncs directories and S3 prefixes.
run: |
aws s3 sync liquibase-mongodb/src/main/resources/www.liquibase.org/xml/ns/mongodb/ s3://liquibaseorg-origin/xml/ns/mongodb/ --content-type application/octet-stream --only-show-errors

- name: Index.htm file upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }}
Expand All @@ -70,4 +82,5 @@ jobs:
sed -ie "s/<\/ul>/ <li><a href=\"\/xml\/ns\/mongodb\/${entry}\">${entry}<\/a><\/li>\n<\/ul>/" index-file/index.htm
fi
done

aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/mongodb/ --only-show-errors
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.liquibase.ext</groupId>
<artifactId>liquibase-mongodb</artifactId>
Expand All @@ -23,7 +22,7 @@
<url>https://github.com/liquibase/liquibase-mongodb/issues</url>
</issueManagement>
<scm>
<connection>scm:git:http://github.com/liquibase/liquibase-mongodb.git</connection>
<connection>scm:git:https://github.com/liquibase/liquibase-mongodb.git</connection>
<url>https://github.com/liquibase/liquibase-mongodb</url>
<tag>HEAD</tag>
</scm>
Expand Down