-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.03 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Convert notebook and deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
Convert-Deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- uses: satackey/action-docker-layer-caching@v0.0.11
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Build docker images
run: docker build -t mycontainer . -f Dockerfile
- name: Convert notebook
run: docker run -v $PWD/docs:/app/docs mycontainer make convert
- name: List files in the docs folder
run: |
ls docs
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: docs # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
- run: echo "This job's status is ${{ job.status }}."