From ce2388c463f3f925bf251022ef0ccdcd1244ffc2 Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Thu, 18 Jul 2024 13:22:08 +0200 Subject: [PATCH] update path --- .github/workflows/publish.yaml | 9 ++------- .gitignore | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0083834..110940e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,8 +13,6 @@ jobs: steps: - name: Checkout Quarto Book uses: actions/checkout@v4 - with: - path: main - name: Checkout Pythia Book uses: actions/checkout@v4 @@ -29,7 +27,6 @@ jobs: id: setup-python uses: quarto-dev/quarto-actions/publish@v2 with: - path: main target: gh-pages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -50,12 +47,10 @@ jobs: - name: Commit Files if: github.ref == 'refs/heads/main' run: | - cp main/notebooks/*.ipynb eo-datascience-cookbook/notebooks/*.ipynb - cd eo-datascience-cookbook + NB_PATH="$(pwd)/notebooks" git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add notebooks/*.ipynb - git commit -m "Quarto output" + git commit ${NB_PATH[*]/.ipynb} -m "Quarto output" - name: Push Commit if: github.ref == 'refs/heads/main' diff --git a/.gitignore b/.gitignore index f316924..b11b2d1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ .env /.quarto/ /_book/ -/data/ -/**/*.ipynb \ No newline at end of file +/data/ \ No newline at end of file