Skip to content

Commit

Permalink
Update deploy-site.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed May 26, 2024
1 parent 11bbcef commit 4f6ee5c
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/deploy-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
build-doc:
name: Build cmdlet ref

build:
name: Build website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,14 +21,6 @@ jobs:
run: ./build/Update-CommandReference.ps1
shell: pwsh

build-site:
name: Build website
needs: build-doc
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website/
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
Expand All @@ -36,17 +29,21 @@ jobs:

- name: Install dependencies
run: npm ci
working-directory: ./website/

- name: Build website
run: npm run build
working-directory: ./website/

- name: Upload Build Artifact
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./website/build

deploy:
name: Deploy to GitHub Pages
needs: build-site
needs: build
runs-on: ubuntu-latest

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand All @@ -58,7 +55,6 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 4f6ee5c

Please sign in to comment.