Skip to content

Commit

Permalink
Merge branch 'convert_notebooks_repo' of https://github.com/daquinter…
Browse files Browse the repository at this point in the history
…oflex/tidy3d-docs into convert_notebooks_repo
  • Loading branch information
daquinteroflex committed Nov 10, 2023
2 parents 73d9749 + a826187 commit 7ab603f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-to-proxy-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/checkout@v3
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: notebooks/
folder: ./
token: ${{ secrets.GH_PAT }}
repository-name: flexcompute/tidy3d-example-library
target-folder: notebooks
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
required: true
jobs:
set_env:
outputs:
outputs:noteb
env: ${{ steps.setenv.outputs.env }}
dest-branch: ${{ steps.dest-branch.outputs.branch }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,14 +57,14 @@ jobs:
python-version: '3.10'
cache: 'pip'
- run: cd ${{ github.workspace }} && pip install beautifulsoup4 nbformat nbconvert pyyaml
- run: cd ${{ github.workspace }}/notebooks && mkdir html && python convert.py
- run: cd ${{ github.workspace }} && mkdir html && python convert.py
- shell: bash
run: |
cd ${{ github.workspace }}
mkdir -p build && rsync -r ${{ github.workspace }}/notebooks/html/ build
mkdir -p build && rsync -r ${{ github.workspace }}/html/ build
mkdir -p build/css && rsync -r build/css/ build-css
mkdir -p build/image && rsync -r build/image/ build-image
mkdir -p build-source && cp notebooks/*.ipynb build-source
mkdir -p build-source && cp ./*.ipynb build-source
rm -rf build/css
rm -rf build/image
ls -la build
Expand Down

0 comments on commit 7ab603f

Please sign in to comment.