Skip to content

Merge pull request #93 from openradar/dependabot/github_actions/actio… #62

Merge pull request #93 from openradar/dependabot/github_actions/actio…

Merge pull request #93 from openradar/dependabot/github_actions/actio… #62

Workflow file for this run

name: deploy-book
on:
# Trigger the workflow on push to main branch
push:
branches:
- main
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build-book.yaml
with:
environment_name: cookbook-dev
environment_file: environment.yml
path_to_notebooks: ./
deploy:
needs: build
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Download Artifact Book
uses: actions/download-artifact@v3
with:
name: book-zip-${{ github.event.number }}
- name: Unzip the book
run: |
rm -rf _build/html
unzip book.zip
rm -f book.zip
- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
keep_files: true # This preserves existing previews from open PRs