Skip to content

Commit 344911b

Browse files
committed
Update GitHub Actions for 0.9.x Version Release (#97)
Motivation: We will be releasing 0.9.x versions in parallel with 1.0.x versions. Modification: Updated GitHub Actions workflow to accommodate the release of 0.9.x versions. Result: GitHub Actions is now prepared for the release of 0.9.x versions.
1 parent e9d7228 commit 344911b

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.github/scripts/release_rollback.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ set -e
1919
TAG=$(grep scm.tag= release.properties | cut -d'=' -f2)
2020
git remote set-url origin [email protected]:asyncer-io/r2dbc-mysql.git
2121
git fetch
22-
git checkout "trunk"
22+
git checkout "$1"
2323
./mvnw -B --file pom.xml release:rollback
2424
git push origin :"$TAG"

.github/workflows/deploy_snapshot.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: DEPLOY_SNAPSHOT
1616

1717
on:
1818
push:
19-
branches: [ "trunk" ]
19+
branches: [ "trunk", "0.9" ]
2020

2121

2222
jobs:
@@ -58,11 +58,3 @@ jobs:
5858

5959
- name: Deploy Local Staged Artifacts
6060
run: ./mvnw -B --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=/home/runner/local-staging
61-
62-
63-
64-
65-
66-
67-
68-

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Rollback Release
6464
working-directory: ./prepare-workspace/
6565
if: ${{ failure() }}
66-
run: ./.github/scripts/release_rollback.sh
66+
run: ./.github/scripts/release_rollback.sh ${{ github.ref_name }}
6767

6868
stage-release:
6969
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)