Skip to content

Commit

Permalink
add a github pages deployment in a .yml form using stored artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ikowalec committed Mar 4, 2024
1 parent 2d9bcaa commit 2320e46
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main
pull request:

jobs:
build:
steps:
- name: Checkout code
uses: actions/checkout@v2

# Download artifact from another workflow (docs.yml)
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: DocumentationHTML
path: $GITHUB_WORKSPACE

deploy:
# Add a dependency to the build job
needs: build
runs-on: ubuntu-latest

steps:

# Add any necessary steps to build your GitHub page

# Deploy the built site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages
with:
branch: gh-pages # Or the branch you want to deploy to
folder: docs/
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2320e46

Please sign in to comment.