diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 912b21f..d07d0cf 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -58,6 +58,25 @@ jobs: - if: github.ref_type == 'tag' run: '[[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]]' - run: deno publish --allow-dirty + - if: github.ref_type == 'tag' + id: extract-changelog + uses: dahlia/submark@0.3.1 + with: + input-file: CHANGES.md + heading-level: 2 + heading-title-text: version ${{ github.ref_name }} + ignore-case: true + omit-heading: true + - if: github.ref_type == 'tag' + run: 'cat "$CHANGES_FILE"' + env: + CHANGES_FILE: ${{ steps.extract-changelog.outputs.output-file }} + - if: github.ref_type == 'tag' + uses: softprops/action-gh-release@v2 + with: + body_path: ${{ steps.extract-changelog.outputs.output-file }} + name: BotKit ${{ github.ref_name }} + generate_release_notes: false publish-docs: if: github.event_name == 'push' @@ -87,4 +106,4 @@ jobs: - id: deploy uses: actions/deploy-pages@v4 -# cSpell: ignore denoland +# cSpell: ignore denoland softprops diff --git a/CHANGES.md b/CHANGES.md index 1cd4f24..54e6315 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,4 +4,4 @@ BotKit changelog Version 0.1.0 ------------- -Initial release. To be released. +Initial release. Released on February 7, 2025.