Skip to content

Commit

Permalink
testing deploy previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Fir121 committed Apr 19, 2024
1 parent 9e5be3f commit 5846107
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs gh-deploy --force --no-history
- run: mkdocs gh-deploy
27 changes: 27 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs gh-deploy
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: .
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto

0 comments on commit 5846107

Please sign in to comment.