-
Notifications
You must be signed in to change notification settings - Fork 73
74 lines (63 loc) · 2.16 KB
/
publish_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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Draft Release
on:
push:
tags:
- v*
- '!v*-*'
jobs:
checkout:
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/checkout@v3
- name: Check correct app version
id: appinfo
uses: ./.github/actions/get-polls-version
- name: Setup node
if: success()
uses: ./.github/actions/setup-node
- name: Setup composer and PHP
if: success()
uses: ./.github/actions/setup-composer
with:
mode: production
php-tools: composer
- name: build
run: npm run build --if-present
- name: Make appstore package ${{ steps.appinfo.outputs.app-version }}
if: success()
run: make package
- name: rename packages to polls-${{ steps.appinfo.outputs.app-version }}
if: success()
run: mv build/artifacts/appstore/polls.tar.gz build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz
- name: create zip archive from sources
if: success()
run: |
pushd build/source
zip -r ../artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip *
popd
- name: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Draft Release
if: success()
uses: softprops/action-gh-release@v1
with:
body: "# Changelog ${{ steps.appinfo.outputs.app-version }} \n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: false
draft: false
generate_release_notes: true
files: |
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip
- name: Create release notification issue
if: success()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASENOTES: ${{ steps.extract-release-notes.outputs.release_notes }}
VERSION: ${{ steps.appinfo.outputs.app-version }}
TAG: ${{ steps.appinfo.outputs.tag-version }}
with:
filename: .github/RELEASE_NOTIFICATION.md