Skip to content

Add build check to pull requests #28

Add build check to pull requests

Add build check to pull requests #28

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches:
- main
pull_request:
types: [opened,reopened,review_requested]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: set git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "SSD Developers"
- name: Check out source
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Sphinx packages
run: |
pip install Sphinx==4.5.0
pip install sphinx-design==0.0.13
pip install sphinx-rtd-theme==1.2.0
- name: build docs
run: |
make clean html
- name: commit docs to gh-pages branch
if: ${{ github.event_name == 'push' $$ github.ref_name == 'main' }}

Check failure on line 36 in .github/workflows/publish_wps.yml

View workflow run for this annotation

GitHub Actions / Build and Deploy Docs

Invalid workflow file

The workflow is not valid. .github/workflows/publish_wps.yml (Line: 36, Col: 11): Unexpected symbol: '$$'. Located at position 29 within expression: github.event_name == 'push' $$ github.ref_name == 'main'
run: |
git worktree add ../publish_wps
cd ../publish_wps
git fetch origin gh-pages
git checkout gh-pages
cp -r ../simulation-systems/build/html/. .
git commit -am "Docs build"
git push -u origin gh-pages