debug deploy workflow #55
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 gh-pages | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
pip install sphinx-design | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: debug | |
run: | | |
jupyter lite build --debug --contents /home/runner/work/homepage/homepage/docs/source/_contents --output-dir /tmp/pages-0KMlQCTKuW/lite --apps notebooks --apps edit --apps lab --apps repl --apps tree --apps consoles --lite-dir /home/runner/work/homepage/homepage/docs/source | |
- name: Build and Commit | |
uses: sphinx-notes/pages@master | |
with: | |
documentation_path: './docs/source' | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages |