-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.17 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
name: Moodle Plugin CI
on:
release:
types: [ created ]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
moodle_version: [ '4.4', '4.5' ]
steps:
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
build-args: |
MOODLE_VERSION=${{ matrix.moodle_version }}
file: Dockerfile
push: true
tags: adler-moodle:${{ matrix.moodle_version }}-${{ github.event.release.tag_name }}
#
# - name: Prepare release body (description)
# id: prep_body
# run: |
# echo "${{ github.event.release.body }}" > changes.md
#
# - name: Discord notification
# uses: appleboy/discord-action@master
# with:
# webhook_id: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_ID }}
# webhook_token: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_TOKEN }}
# username: GitHub Releases
# message: "New release of **${{ github.repository }}**\nVersion: ${{ github.ref_name }} (${{github.event.release.name}})\n<${{ github.event.release.html_url }}>"
# file: changes.md