This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
Porto photo resize #1121
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |