-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (43 loc) · 1.24 KB
/
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
46
47
48
49
50
51
52
53
54
name: Build/release
on:
push:
## Run on tags starting with `v*`
tags:
- 'v*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '18'
- name: "Install dependencies for build"
run: "npm install"
- name: "Lint"
run: "npm run lint"
- name: "Run build"
run: "npm run build"
# I think otherwise a the bundles get excluded
- name: "Delete gitignore"
run: "rm .gitignore"
- name: 'Zip folder'
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: "agregore-renderer-${{github.ref_name}}.zip"
exclusions: '*.git* /*node_modules/* .*'
- name: 'Upload Release'
uses: ncipollo/[email protected]
with:
artifacts: "agregore-renderer-${{github.ref_name}}.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
allowUpdates: true