build #2155
This file contains hidden or 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: | |
| branches: | |
| - master | |
| schedule: | |
| # 1am daily (default): '0 1 * * *' | |
| # hourly (boss updates): '0 * * * *' | |
| - cron: '0 1 * * *' | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.12 | |
| - name: Setup pipenv virtual environment | |
| run: | | |
| pip install pipenv | |
| pipenv sync | |
| - name: Clone pvme-guides repository | |
| run: git clone --depth 1 https://github.com/pvme/pvme-guides.git | |
| - name: Test build website | |
| if: github.event.pull_request.base.ref == 'master' | |
| run: pipenv run mkdocs build | |
| - name: Update website | |
| if: github.ref == 'refs/heads/master' | |
| run: pipenv run mkdocs gh-deploy --force |