-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (41 loc) · 1.55 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
46
47
48
49
50
51
name: Release
on:
push:
branches:
- release
jobs:
ci:
name: CI
uses: ponlawat-w/moodle-local_accessibility/.github/workflows/ci.yml@master
with:
widget-textcolour-branch: ${{ github.ref }}
get-version:
name: Get version info
uses: ponlawat-w/moodle-local_accessibility/.github/workflows/get-version.yml@master
with:
ref: ${{ github.ref }}
release:
name: Release
needs: [ci, get-version]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Push to Branch
run: |
git checkout -b ${{ needs.get-version.outputs.branch-name }}
git push -f -u origin ${{ needs.get-version.outputs.branch-name }}
- name: Publish Tag
run: |
git config --global user.name "ponlawat-w"
git config --global user.email "[email protected]"
git tag -fa v${{ needs.get-version.outputs.plugin-release }} -m "${{ needs.get-version.outputs.plugin-release }} - ${{ needs.get-version.outputs.plugin-version }}"
git push --force origin v${{ needs.get-version.outputs.plugin-release }}
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ needs.get-version.outputs.plugin-release }}
name: v${{ needs.get-version.outputs.plugin-release }}
body: ${{ needs.get-version.outputs.plugin-release }} - ${{ needs.get-version.outputs.plugin-version }}