-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (50 loc) · 1.27 KB
/
ignite.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
name: Build Ignite
on:
push:
tags:
- "v5.*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
with:
submodules: true
path: "app/sources"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm install
- run: npm run build
- uses: actions/upload-artifact@master
with:
name: buildfiles
path: dist
release:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/download-artifact@master
with:
name: buildfiles
path: ./dist
- name: archive
run: cd ./dist && zip viur-ignite.zip -r ./*
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
- name: create release
uses: softprops/action-gh-release@v1
with:
files: ./dist/viur-ignite.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}