From a8261878c2a38338c41cd5fc561efae665010d69 Mon Sep 17 00:00:00 2001 From: Dario Quintero Date: Wed, 8 Nov 2023 17:33:51 +0100 Subject: [PATCH] FEAT: Updated github actions for new repo structure --- .github/workflows/sync-to-proxy-repo.yaml | 2 +- .github/workflows/sync.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-to-proxy-repo.yaml b/.github/workflows/sync-to-proxy-repo.yaml index dcfeddc9d..2239804d2 100644 --- a/.github/workflows/sync-to-proxy-repo.yaml +++ b/.github/workflows/sync-to-proxy-repo.yaml @@ -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 diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index c9e4d9928..9d1b2fd27 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -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 @@ -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