Fix missing image. #20
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: Render previews | |
on: | |
push: | |
paths: | |
- '**.scad' | |
- '**.ini' | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
if: ${{ github.actor != 'TFbot'}} | |
env: | |
OPENSCAD_BIN: xvfb-run --auto-servernum ~/OpenSCAD.AppImage | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUBPAT }} | |
submodules: recursive | |
- name: Checkout repository and set original GitHub token | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ github.token }} | |
- name: Install requirements | |
run: | | |
uname -p | |
sudo apt update | |
sudo apt-get install libc-bin python3-setuptools xvfb | |
sudo python3 -m pip install --upgrade pip | |
sudo python3 -m pip install stlsort | |
sudo python3 -m pip install lxml | |
sudo python3 -m pip install git+https://github.com/ThunderFly-aerospace/yagv | |
sudo python3 -m pip install git+https://${{ secrets.AUTH_USER }}:${{ secrets.GITHUBPAT }}@github.com/ThunderFly-aerospace/processor3D.git | |
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage -O ~/OpenSCAD.AppImage | |
chmod +x ~/OpenSCAD.AppImage | |
~/OpenSCAD.AppImage --version | |
- name: Make | |
run: | | |
cd CAD/src | |
make | |
- name: Upload a PNG Artifact | |
uses: actions/[email protected] | |
with: | |
name: 'render_png' | |
path: './**/*.png' | |
- name: Upload a STL Artifact | |
uses: actions/[email protected] | |
with: | |
name: 'render_stl' | |
path: './**/*.stl' | |
- name: publish to git | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Automatic commit from workflow | |