This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
61 lines (52 loc) · 1.63 KB
/
publish.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
56
57
58
59
60
61
name: Push to GitHub Pages on push to master
on:
schedule:
# every day at midnight: https://crontab.guru/every-midnight
- cron: '0 0 * * *'
# Trigger the workflow on push or pull request for master branch
push:
branches:
- master
pull_request:
branches:
- master
# Manually trigger workflow
workflow_dispatch:
jobs:
build:
name: Deploy
runs-on: ubuntu-22.04
steps:
- name: Checkout master
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: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.111.3'
extended: true
- name: Build
run: hugo --minify
# Deploy to local repo
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: public
SKIP_EMPTY_COMMITS: True
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}