Skip to content

Commit b68b454

Browse files
Merge pull request #1 from unofficial-rev-port/ci/setup
Manifest GitHub Actions workflows
2 parents 5d0a1a5 + ab1a3c9 commit b68b454

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
runs-on: ${{ matrix.os }}
18+
name: "Build - ${{ matrix.os }}"
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
27+
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.10'
31+
32+
- name: Install Python setup tools
33+
run: |
34+
pip install setuptools
35+
36+
- name: Install dependencies
37+
run: npm install
38+
39+
- name: Build
40+
run: npm run build
41+
42+
- name: Test
43+
run: npm test

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
runs-on: ${{ matrix.os }}
15+
name: "Release - ${{ matrix.os }}"
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.10'
28+
- name: Install Python setup tools
29+
run: |
30+
pip install setuptools
31+
32+
- name: Install dependencies
33+
run: npm install
34+
35+
- name: Build
36+
run: npm run build
37+
38+
- name: Create release
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
files: dist/*
42+
tag_name: ${{ github.ref }}
43+
name: ${{ github.ref }}
44+
body: |
45+
This is a release for version ${{ github.ref }}.
46+
It contains the compiled files from the build process.

0 commit comments

Comments
 (0)