Skip to content

Commit

Permalink
Towards better release procedure
Browse files Browse the repository at this point in the history
- Prepare release commit (CHANGELOG), triple-check and push.
- Wait for CI to finish.
- Tag locally and push.
- Tadaaa!
  • Loading branch information
stronk7 committed Apr 8, 2024
1 parent 02a279e commit 0e8b876
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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.

0 comments on commit 0e8b876

Please sign in to comment.