diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1be6710..4353268 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,11 +16,29 @@ jobs: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout Quarto Book + if: github.ref == 'refs/heads/main' uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout Pythia Book + if: github.ref == 'refs/heads/main' + uses: actions/checkout@v4 + with: + repository: tuw-geo/eo-datascience-cookbook + path: pythia + fetch-depth: 0 + token: ${{ secrets.BOT_TOKEN }} + persist-credentials: true + + - name: Checkout Quarto Book Branch dev + if: github.ref == 'refs/heads/dev' + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Checkout Pythia Book Branch dev + if: github.ref == 'refs/heads/def' uses: actions/checkout@v4 with: repository: tuw-geo/eo-datascience-cookbook