-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.45 KB
/
Copy pathrelease.yml
File metadata and controls
51 lines (42 loc) · 1.45 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
name: Release version
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# TODO: try to use .lock file, npm ci and cache for speedup
- name: npm install, build
run: |
npm install
npm run build
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Archive production artifacts
uses: thedoctor0/zip-release@master
with:
filename: "${{ steps.package-version.outputs.current-version}}.zip"
path: dist
- name: Release version
uses: ncipollo/release-action@v1
with:
draft: true
tag: ${{ steps.package-version.outputs.current-version}}
prerelease: true
artifacts: "${{ steps.package-version.outputs.current-version}}.zip"
replacesArtifacts: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
with:
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
raw: >-
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"title": "NEW release ${{ steps.package-version.outputs.current-version }} arrived",
"text": "Approve or discard new release ${{ steps.package-version.outputs.current-version }} draft at https://github.com/jdi-testing/jdn/releases"
}