forked from dannvix/NflxMultiSubs
-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (39 loc) · 1012 Bytes
/
build.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
name: Node.js Github Workflow
on:
push:
branches: [ master ]
release:
types: [ created ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run pack
- uses: actions/upload-artifact@v2
with:
name: archives
path: dist/*
release:
name: Add to release
if: github.event_name == 'release' && github.event.action == 'created' #only run if a release was created
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: archives
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'NflxMultiSubs_*'