forked from REVrobotics/node-expansion-hub-ftdi
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 970 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: "Release - ${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python setup tools
run: |
pip install setuptools
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: dist/*
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
body: |
This is a release for version ${{ github.ref }}.
It contains the compiled files from the build process.