Skip to content

Commit

Permalink
FEAT: Updated github actions for new repo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinteroflex committed Nov 8, 2023
1 parent 651c250 commit a826187
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 a826187

Please sign in to comment.