forked from moodlehq/moodle-plugin-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.32 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Create Release
on:
push:
tags: [ '*' ]
jobs:
release:
# Avoid forks to perform this job.
if: github.repository_owner == 'moodlehq'
name: Create Release
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
ini-values: phar.readonly = false
- name: Build PHAR
run: |
make build
php build/moodle-plugin-ci.phar list
- name: Extract release notes from changelog
id: extract-release-notes
uses: yashanand1910/standard-release-notes@v1.3.0
with:
changelog_path: docs/CHANGELOG.md
version: ${{ github.ref }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: build/moodle-plugin-ci.phar
artifactContentType: application/zip
body: |
${{ steps.extract-release-notes.outputs.release_notes }}
#
Take a look at the [CHANGELOG](https://moodlehq.github.io/moodle-plugin-ci/CHANGELOG.html) for details about other releases.
Please follow the [4.0 Upgrade guide](https://moodlehq.github.io/moodle-plugin-ci/UPGRADE-4.0.html) when upgrading from 3.x.