-
-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (34 loc) · 1.09 KB
/
release.yaml
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
name: Build and Deploy
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
# Allow running manually from the actions tab
workflow_dispatch:
concurrency:
group: "release"
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
lfs: true
- name: Build
run: |
node --version
npm --version
npm i
npm run build
- name: Archive Release
run: |
pushd dist/plutonium-addon-automation
zip -r ../../plutonium-addon-automation.zip .
popd
- name: Upload Release
run: |
node script/workflows/write-version-notes-file.js ${{github.ref_name}}
gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes-file NOTES_FILE.md plutonium-addon-automation.zip dist/plutonium-addon-automation/module.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}