-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (44 loc) · 1.53 KB
/
deploy.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
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches:
- main
# Manually trigger workflow
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install linux system dependencies
run: |
sudo apt-get update
sudo apt-get install -y glibc-tools # required for catchsegv
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libegl1-mesa libxcb-shape0 libxcb-cursor0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build widget catalog
run: |
pip install -U setuptools pip
pip install orange-canvas-core pyqt6==6.5.*
bash scripts/build-widget-catalog.sh
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: "16.x"
- name: Installing my packages
run: yarn install --frozen-lockfile
- name: Build my App
run: yarn run build && yarn run export && touch ./out/.nojekyll
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.