-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from ansidev/release/1.1.4
Release v1.1.4
- Loading branch information
Showing
18 changed files
with
282 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## [v1.1.4](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.1.3...v1.1.4) (2023-06-13) | ||
|
||
### Bug Fixes | ||
|
||
- **changelog:** update chglog config | ||
|
||
- **changelog:** correct changelog configs | ||
|
||
### Documentations | ||
|
||
- **readme:** update README.md | ||
|
||
### Features | ||
|
||
- **taskfile:** add taskfiles | ||
|
||
### Others | ||
|
||
- **github-workflow:** update workflows, apply actions from ghacts/gitflow | ||
|
||
Full Changelog: [v1.1.3...v1.1.4](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.1.3...v1.1.4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ newlines: | |
endOfVersion: 1 | ||
replacements: | ||
- path: "VERSION" | ||
find: ".*" | ||
find: ".+" | ||
replace: "{{.VersionNoPrefix}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [ansidev] | ||
patreon: ansidev | ||
# open_collective: # Replace with a single Open Collective username | ||
ko_fi: ansidev | ||
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
# liberapay: # Replace with a single Liberapay username | ||
# issuehunt: # Replace with a single IssueHunt username | ||
# otechie: # Replace with a single Otechie username | ||
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: | ||
- "https://www.paypal.me/ansidev" | ||
- "https://www.buymeacoffee.com/ansidev" | ||
- "https://me.momo.vn/ansidev" |
40 changes: 0 additions & 40 deletions
40
.github/workflows/auto_merge_release_hotfix_into_develop.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: create_release_pr | ||
|
||
on: | ||
push: | ||
branches: | ||
- "release/**" | ||
- "hotfix/**" | ||
|
||
jobs: | ||
create_release_pr: | ||
name: Create release pull request | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
# only create draft pull requests on | ||
# pushing to branches 'release/' or 'hotfix/' | ||
if: | | ||
startsWith(github.ref_name, 'release/') || | ||
startsWith(github.ref_name, 'hotfix/') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
# needed by "gh pr create" | ||
fetch-depth: 0 | ||
|
||
- name: Set release type as release | ||
if: startsWith(github.ref_name, 'release/') | ||
run: echo "RELEASE_TYPE=release" >> "$GITHUB_ENV" | ||
|
||
- name: Set release type as hotfix | ||
if: startsWith(github.ref_name, 'hotfix/') | ||
run: echo "RELEASE_TYPE=hotfix" >> "$GITHUB_ENV" | ||
|
||
- name: Test action 'Create release PR' | ||
uses: ghacts/gitflow/create-release-pr@main | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
release-type: ${{ env.RELEASE_TYPE }} | ||
release-branch-prefix: '${{ env.RELEASE_TYPE }}/' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: merge_release_into_develop | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
merge_release_into_develop: | ||
name: Merge release into develop | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
# only merge pull requests that begin with 'release/' or 'hotfix/' | ||
if: | | ||
startsWith(github.head_ref, 'release/') || | ||
startsWith(github.head_ref, 'hotfix/') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
# needed by "gh pr create" | ||
fetch-depth: 0 | ||
|
||
- name: Test action 'Merge release into develop' | ||
uses: ghacts/gitflow/merge-release-into-develop@main | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
release-branch: ${{ github.head_ref }} | ||
develop-branch: develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: publish_release | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
env: | ||
VERSION_TAG_PREFIX: "v" | ||
|
||
jobs: | ||
release: | ||
name: Publish release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
# only merge pull requests that begin with 'release/' or 'hotfix/' | ||
if: github.event.pull_request.merged == true && | ||
(startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'hotfix/')) | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
# needed by "gh pr create" | ||
fetch-depth: 0 | ||
|
||
- name: Set release type as release | ||
if: startsWith(github.head_ref, 'release/') | ||
run: echo "RELEASE_TYPE=release" >> "$GITHUB_ENV" | ||
|
||
- name: Set release type as hotfix | ||
if: startsWith(github.head_ref, 'hotfix/') | ||
run: echo "RELEASE_TYPE=hotfix" >> "$GITHUB_ENV" | ||
|
||
- name: Extract version from release branch | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref }} | ||
BRANCH_PREFIX: '${{ env.RELEASE_TYPE }}/' | ||
run: | | ||
RELEASE_VERSION=${BRANCH_NAME#${BRANCH_PREFIX}} | ||
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV | ||
- name: Test action 'Publish release' | ||
uses: ghacts/gitflow/publish-release@main | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
release-type: ${{ env.RELEASE_TYPE }} | ||
release-branch-prefix: '${{ env.RELEASE_TYPE }}/' | ||
notes-file: '.changes/${{ env.VERSION_TAG_PREFIX }}${{ env.RELEASE_VERSION }}.md' |
Oops, something went wrong.