-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.34 KB
/
admin.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 Admin
on:
push:
tags:
- "v4.*"
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: 'app/sources/admin/package-lock.json'
- run: npm install --prefix=app/sources/admin
- run: npm run build --prefix=app/sources/admin
- uses: actions/upload-artifact@master
with:
name: buildfiles
path: deploy/vi
release:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/download-artifact@master
with:
name: buildfiles
path: ./build
- name: archive
run: cd ./build && zip viur-vi.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: ./build/viur-vi.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}