From d67e5a7b3693ae3809145289be7c60eab1e9e7be Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Fri, 19 Jul 2024 08:59:03 +0200 Subject: [PATCH] publish to pythia --- .github/workflows/publish.yaml | 35 ++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cb069d9..aecef45 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -24,7 +24,9 @@ jobs: uses: actions/checkout@v4 with: repository: tuw-geo/eo-datascience-cookbook - path: eo-datascience-cookbook + path: pythia + + - run echo -e $(ls -la pythia) - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 @@ -60,15 +62,15 @@ jobs: # MYBINDERORG_TAG: ${{ github.event.ref }} # REPO2DOCKER_EXTRA_ARGS: --subdir notebooks - - name: Commit Files + - name: Commit Files Quarto Book if: github.ref == 'refs/heads/main' run: | - NB_PATH=notebooks/*.ipynb + NB_PATH=./notebooks/*.ipynb git config --local user.name "$GITHUB_ACTOR" git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" git commit ${NB_PATH[*]} -m "Quarto output" || echo "No changes to commit" - - name: Push Commit + - name: Push Commit Quarto Book if: github.ref == 'refs/heads/main' uses: ad-m/github-push-action@master with: @@ -76,11 +78,20 @@ jobs: branch: main force: true - # - name: Push Commit - # if: github.ref == 'refs/heads/main' - # uses: ad-m/github-push-action@master - # with: - # directory: eo-datascience-cookbook - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: main - # force: true \ No newline at end of file + - name: Commit Files Pythia Book + if: github.ref == 'refs/heads/main' + run: | + cp ./notebooks/*.ipynb ./pythia/notebooks/*.ipynb + NB_PATH=./pythia/notebooks/*.ipynb + git config --local user.name "$GITHUB_ACTOR" + git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" + git commit ${NB_PATH[*]} -m "Quarto output" || echo "No changes to commit" + + - name: Push Commit Pythia Book + if: github.ref == 'refs/heads/main' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: main + force: true + directory: pythia \ No newline at end of file