Skip to content

Commit

Permalink
CI: Fix Docs Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey authored and DonLakeFlyer committed Apr 18, 2024
1 parent 9079109 commit 94f779e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ on:

workflow_dispatch:

env:
DOCS_DEPLOY: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged) }}

jobs:
build:
runs-on: ubuntu-latest
outputs:
DOCS_DEPLOY: ${{ env.DOCS_DEPLOY }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -42,17 +37,16 @@ jobs:
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
if: env.DOCS_DEPLOY
uses: actions/upload-artifact@v4
with:
name: qgc_docs_build
path: docs/.vitepress/dist/
retention-days: 1

deploy:
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged) }}
needs: build
runs-on: ubuntu-latest
if: needs.build.outputs.DOCS_DEPLOY

steps:
- name: Download Artifact
Expand Down

0 comments on commit 94f779e

Please sign in to comment.