forked from simonmartyr/MxPushNotifications
-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (61 loc) · 1.83 KB
/
release-draft.yml
File metadata and controls
61 lines (61 loc) · 1.83 KB
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
52
53
54
55
56
57
58
59
60
61
name: Create release draft
on:
push:
branches:
- master
- mx8
- compliance
tags:
- v*.*.*
jobs:
build-module:
uses: ./.github/workflows/build-module.yml
secrets: inherit
build-widget:
uses: ./.github/workflows/build-widget.yml
secrets: inherit
check-version:
runs-on: ubuntu-latest
needs:
- build-module
- build-widget
steps:
- run: |
if [[ ${{ needs.build-module.outputs.module-version }} != ${{ needs.build-widget.outputs.widget-version }} ]]; then
echo "Module version (${{ needs.build-module.outputs.module-version }}) and widget version (${{ needs.build-widget.outputs.widget-version }}) do not match"
exit 1
fi
documentation:
runs-on: ubuntu-latest
environment: docs
steps:
- run: echo "Documentation is ready"
create-draft-release:
needs:
- check-version
- documentation
- build-module
- build-widget
runs-on: ubuntu-latest
#if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
sparse-checkout: .
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # 4.2.1
with:
name: module
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # 4.2.1
with:
name: widget
- uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # 2.2.1
with:
name: "Marketplace release v${{ needs.build-module.outputs.module-version }}"
body_path: CHANGELOG.md
draft: true
files: |
*.mpk
LICENSE
fail_on_unmatched_files: true
generate_release_notes: false
make_latest: ${{ github.ref_name == 'master' }}