Skip to content

Commit 8d72da8

Browse files
authored
Update GH workflows (#103)
Motivation: - need to release 0.9.x - make use of matrix Modification: - Make use of matrix feature - set target branches as ['trunk', '0.9.x'] - Add question template Result: - Prepared for the release of version 0.9.x - Added a new 'question' issue template for easier submission of questions - Successfully updated GitHub workflows to utilize matrix feature
1 parent e1d1358 commit 8d72da8

17 files changed

+144
-131
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[bug]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Additional context**
23+
Add any other context about the problem here.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Documentation
3+
about: Suggest documentation changes
4+
title: "[docs]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[feature]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Question
3+
about: Ask a question or seek clarification about the project.
4+
title: "[QUESTION] Your question title here"
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
## Summary
11+
<!-- Provide a brief summary of your question. -->
12+
13+
## Detailed description
14+
<!-- Describe your question in detail. Please be specific and provide examples if possible. -->
15+
16+
## Relevant context
17+
<!-- If applicable, provide any context that helps clarify your question (e.g., links to related issues, code snippets, screenshots). -->
18+
19+
## Your environment
20+
<!-- If your question relates to your specific environment or setup, please provide details here (e.g., operating system, library versions, etc.). -->
21+
22+
## Additional information
23+
<!-- If there's anything else that might help us answer your question, please provide it here. -->
24+
25+
## Checklist
26+
- [ ] I have searched the existing issues to make sure my question has not been asked before
27+
- [ ] I have provided all the necessary information and context to help answer my question
28+
- [ ] I have read the documentation and/or README for this project (if applicable)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Motivation:
2+
(Please describe the problem you are trying to solve, or the new feature you are trying to add.)
3+
4+
Modification:
5+
(Please describe the changes you have made to the codebase, including any new files, modified files, or deleted files.)
6+
7+
Result:
8+
(Please describe the expected outcome of your changes, and any potential side effects or drawbacks.
9+
If possible, please also include any relevant testing results.)

.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 git@github.com: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/release.yml renamed to .github/workflows/cd-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

.github/workflows/deploy_snapshot.yml renamed to .github/workflows/cd-snapshot.yml

Lines changed: 1 addition & 11 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.x" ]
2020

2121

2222
jobs:
@@ -53,16 +53,6 @@ jobs:
5353
5454
- name: Deploy Local Staging
5555
run: ./mvnw -B -ntp clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/home/runner/local-staging -DskipRemoteStaging=true -DskipTests=true
56-
57-
5856

5957
- name: Deploy Local Staged Artifacts
6058
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-

0 commit comments

Comments
 (0)