diff --git a/.github/changelog-configuration.json b/.github/changelog-configuration.json new file mode 100644 index 0000000..e070584 --- /dev/null +++ b/.github/changelog-configuration.json @@ -0,0 +1,22 @@ +{ + "categories": [ + { + "title": "## ๐Ÿš€ Features", + "labels": ["enhancement"] + }, + { + "title": "## ๐Ÿ› Fixes", + "labels": ["bug"] + }, + { + "title": "## โคต๏ธ Dependencies", + "labels": ["dependencies"] + }, + { + "title": "## ๐Ÿ’ญ Uncategorized", + "labels": [] + } + ], + "template": "#{{CHANGELOG}}", + "pr_template": "* #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}" +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 103791a..087cd10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,18 @@ jobs: npm run build - name: Create output zip run: cd build; zip -r ../fancy-gatus-${{ github.ref_name }}.zip * - - name: Publish Release + - name: Build changelog + id: release + uses: mikepenz/release-changelog-builder-action@v5 + with: + configuration: ".github/changelog-configuration.json" + failOnError: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish release uses: softprops/action-gh-release@v2 with: name: Fancy Gatus ${{ github.ref_name }} - body_path: ${{ github.workspace }}/CHANGELOG.md + body: ${{ steps.release.outputs.changelog }} files: fancy-gatus-${{ github.ref_name }}.zip fail_on_unmatched_files: true