Skip to content

Commit

Permalink
fix(ci): address ? docs preview failures
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Oct 8, 2024
1 parent f5956d8 commit 43f0fbf
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:

jobs:
deploy:

if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}

runs-on: ubuntu-latest
permissions:
issues: write
Expand All @@ -20,12 +18,10 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow_conclusion: success

run_id: ${{ github.event.workflow_run.id }}

path: docs-preview
name: docs-preview

Expand All @@ -42,21 +38,15 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs-preview/docs/_build/html

ssh-key: ${{ secrets.DOCS_PREVIEW_DEPLOY_KEY }}

token: ${{ secrets.DOCS_PREVIEW_DEPLOY_KEY }}
repository-name: litestar-org/type-lens-docs-preview
clean: false

target-folder: ${{ env.PR_NUMBER }}

branch: gh-pages

- uses: actions/github-script@v6
- uses: actions/github-script@v7
env:

PR_NUMBER: ${{ env.PR_NUMBER }}

with:
script: |
const issue_number = process.env.PR_NUMBER
Expand Down

0 comments on commit 43f0fbf

Please sign in to comment.