Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 78d2521

Browse files
authored
Create Release.yml
1 parent 6ba5ddc commit 78d2521

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/Release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [12.x, 14.x, 16.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- uses: olegtarasov/get-tag@v2.1
22+
id: tagName
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm run build --if-present
31+
#- run: npm test
32+
- name: Zip Release
33+
uses: TheDoctor0/zip-release@0.6.2
34+
with:
35+
filename: WebConfigurator_${{ steps.tagName.outputs.tag }}.zip
36+
path: Build
37+
- name: Release
38+
uses: softprops/action-gh-release@v1
39+
if: startsWith(github.ref, 'refs/tags/')
40+
with:
41+
files: |
42+
WebConfigurator_${{ steps.tagName.outputs.tag }}.zip

0 commit comments

Comments
 (0)