Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Nov 7, 2023
1 parent 53ced4a commit 28f1653
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/create_pr_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
run: pip install -r requirements.txt

- name: Build preview website
run: mkdocs build -f mkdocs.yml -d pr_preview-${{ github.ref }}
run: mkdocs build -f mkdocs.yml -d pr_preview

- name: Add preview on gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: pr_preview-${{ github.ref }}
target-folder: pr_preview/pr-${{ github.ref }}
commit-message: Deploy preview for PR ${{ github.ref }} 🛫
folder: pr_preview
target-folder: pr_preview/pr-${{ github.event.number }}
commit-message: Deploy preview for PR ${{ github.event.number }} 🛫
force: false

# - name: Deploy to Github pages
Expand All @@ -60,11 +60,4 @@ jobs:
on branch [gh-pages]\
(${{ github.server_url }}/${{ github.repository }}/tree/gh-pages) \
- ${{ env.DATE }}
"

# - name: Deploy preview
# uses: access-nri/[email protected]
# with:
# source-dir: pr_preview-${{ github.ref }}
# action: deploy
# pr-number: ${{ github.event.number }}
"

0 comments on commit 28f1653

Please sign in to comment.