Bump GH actions #73
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: Build | |
on: | |
push: | |
jobs: | |
build: | |
name: "Build pinion documentation" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies and Pinion | |
run: | | |
set -e | |
sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases | |
sudo apt -qq update | |
sudo apt -qq install --yes --no-install-recommends \ | |
zip inkscape librsvg2-bin make git \ | |
kicad kicad-footprints kicad-symbols kicad-packages3d \ | |
python3 python3-pip \ | |
xvfb xdotool \ | |
npm | |
sudo npm install -g npm@latest | |
sudo python -m pip install mkdocs | |
sudo python -m pip install -e . | |
# Temporarily install upstream version of PcbDraw | |
pip install --force git+https://github.com/yaqwsx/PcbDraw@master | |
cd pinion-widget | |
npm install | |
sudo npm install -g craco | |
cd .. | |
sudo chown -R $USER . | |
- name: Build pinion package | |
run: | | |
set -e | |
make package | |
- name: Upload pinion package artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pinion-package | |
path: dist | |
retention-days: 14 | |
- name: Upload pinion-widget package artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pinion-widget-package | |
path: build/widget | |
retention-days: 14 | |
- run: | | |
make web | |
- name: Deploy to GH Pages | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: site | |
single-commit: true |