Skip to content

Exit CP2K applications more reliably #323

Exit CP2K applications more reliably

Exit CP2K applications more reliably #323

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install -e .
pip install -r docs/requirements.txt
- name: Sphinx build
run: |
cd docs
make html
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/_build/html
deploy:
if: github.ref == 'refs/heads/main'
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2