Merge pull request #107 in SWDEV/docs from feature/PRCUN-2284-introdu… #33
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: deploy | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push events but only for the master branch | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- | |
name: Install | |
run: pip install -r requirements.txt | |
- | |
name: Build | |
run: make html | |
- | |
name: Nojekyll | |
run: touch build/html/.nojekyll | |
- | |
name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: gh-pages | |
build_dir: build/html | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |