From 0e8b8769748fe2e4be44387a6d54f8e900699ff1 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 8 Apr 2024 14:35:38 +0200 Subject: [PATCH] Towards better release procedure - Prepare release commit (CHANGELOG), triple-check and push. - Wait for CI to finish. - Tag locally and push. - Tadaaa! --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..987eac7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Create Release + +on: + push: + tags: [ '*' ] + +jobs: + release: + # Avoid forks to perform this job. + if: github.repository_owner == 'stronk7' + name: Create Release + runs-on: ubuntu-22.04 + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Extract release notes from changelog + id: extract-release-notes + uses: yashanand1910/standard-release-notes@v1.4.0 + with: + changelog_path: CHANGELOG.md + version: ${{ github.ref }} + + - name: Create Release + uses: ncipollo/release-action@v1 + with: + body: | + ${{ steps.extract-release-notes.outputs.release_notes }} + # + Take a look at the [CHANGELOG](https://github.com/moodlehq/moodle-cs/blob/main/CHANGELOG.md) for details about other releases.