Skip to content

Commit

Permalink
deploy gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Dec 4, 2024
1 parent 8039e4c commit 60befdd
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/export-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ on:
# Allow manual trigger
workflow_dispatch: {}

permissions:
pull-requests: write
contents: write
pages: write
id-token: write

env:
UV_SYSTEM_PYTHON: 1

jobs:
export-notebooks:
runs-on: ubuntu-latest

permissions:
pull-requests: write
contents: write

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -69,6 +67,14 @@ jobs:
echo "Changed files:"
git diff --name-only HEAD^ HEAD
- name: πŸ“¦ Setup Pages
uses: actions/configure-pages@v5

- name: πŸ“¦ Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: public

- name: πŸ”„ Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
Expand All @@ -91,20 +97,13 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: πŸ“₯ Download artifact
uses: actions/download-artifact@v4
with:
name: github-pages

- name: πŸ“¦ Setup Pages
uses: actions/configure-pages@v4

- name: πŸš€ Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
permissions:
pages: write
id-token: write

steps:
- name: 🌐 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: github-pages

0 comments on commit 60befdd

Please sign in to comment.