Skip to content

Commit

Permalink
deploy as separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
arulrajnet committed Sep 8, 2024
1 parent 310ad0f commit 13d8afc
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/publish-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ master, publish-gh-pages ]

jobs:
deploy:
build:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -30,4 +30,26 @@ jobs:
python -m pip install -U virtualenv
python -m virtualenv .venv
python -m pip install .
make github
make publish
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
path: "./output"

deploy:
runs-on: ubuntu-latest
needs: build

permissions:
pages: write
id-token: write

environment:
# environment created automatically by GitHub
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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

0 comments on commit 13d8afc

Please sign in to comment.