-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 943 Bytes
/
release.yml
File metadata and controls
46 lines (40 loc) · 943 Bytes
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
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Build and publish for all platforms
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.1
- name: Install Node.js
run: |
cd wwwroot/js/
npm install
- name: Build Node.js
run: |
cd wwwroot/js/
npm run build
- name: Create dist
run: make dist
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: publish_dist
path: bin/publish_dist.tar.gz
retention-days: 5
- name: Upload Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/publish_dist.tar.gz
LICENSE