diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..5db3729 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,23 @@ +name: Create Release + +on: + push: + branches: ["test", "stage", "main"] + workflow_dispatch: +env: + BRANCH: ${{ github.head_ref || github.ref_name }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Load environment variables + run: awk -v branch=${{ env.BRANCH }} '/^BRANCH=/{p = ($0 == "BRANCH=" branch)} p && NF' release.env >> $GITHUB_ENV + - name: Create-Release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}${{ env.TYPE != '' && format('-{0}',env.TYPE) || '' }}${{ env.TYPE_VERSION != '' && format('.{0}',env.TYPE_VERSION) || '' }} + generate_release_notes: true + body_path: ${{ github.workspace }}/RELEASE_NOTES diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md new file mode 100644 index 0000000..9c24dca --- /dev/null +++ b/RELEASE_NOTES.md @@ -0,0 +1,33 @@ +## v1.0.0-alpha.1 (2024-05-15) + +> Description + +### Upgrade Steps + +- [ACTION REQUIRED] +- + +### Breaking Changes + +- +- + +### New Features + +- +- + +### Bug Fixes + +- +- + +### Performance Improvements + +- +- + +### Other Changes + +- +- diff --git a/release.env b/release.env new file mode 100644 index 0000000..3b79496 --- /dev/null +++ b/release.env @@ -0,0 +1,18 @@ +BRANCH=test +MAJOR=1 +MINOR=0 +PATCH=0 +TYPE=alpha +TYPE_VERSION=1 + +BRANCH=stage +MAJOR=1 +MINOR=0 +PATCH=0 +TYPE=rc +TYPE_VERSION=1 + +BRANCH=main +MAJOR=1 +MINOR=0 +PATCH=0