Skip to content

Commit

Permalink
Update workflow to deploy documentation to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
itSubeDibesh committed Nov 12, 2024
1 parent a20eca4 commit cf41333
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
# Simple workflow for deploying documentation to GitHub Pages
name: Deploy Documentation to Pages

on:
# Runs on pushes targeting the default branch
Expand All @@ -22,22 +22,25 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
# Single deploy job for documentation
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact

- name: Upload Documentation Artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
# Upload only the docs directory
path: 'docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit cf41333

Please sign in to comment.