Skip to content

Commit

Permalink
uses steps to check the flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sumn2u committed Mar 26, 2024
1 parent 75c9ca2 commit dd83131
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
Expand Down Expand Up @@ -26,30 +25,38 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Install JSDoc (if not globally installed)
run: npm install -g jsdoc

- name: Generate Documentation
run: jsdoc -c jsdoc.config.json


- name: Upload Documentation Artifact
uses: actions/upload-artifact@v3
with:
name: docs
path: ./docs

# Single deploy job since we're just deploying
deploy:
needs: build_and_deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Download Documentation Artifact
uses: actions/download-artifact@v3
with:
# Upload entire repository
path: './docs'
name: docs
path: ./docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit dd83131

Please sign in to comment.