forked from moodlehq/moodle-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Prepare release commit (CHANGELOG), triple-check and push. - Wait for CI to finish. - Tag locally and push. - Tadaaa!
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |