Skip to content

Commit

Permalink
chore: use built-in GH workflow tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Nov 27, 2024
1 parent 3a8f8c6 commit 5540c1e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
docs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -34,7 +34,17 @@ jobs:
run: uv run python tools/build_docs.py docs-build --version latest
if: github.event_name != 'release'

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
folder: docs-build
path: docs-build/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 5540c1e

Please sign in to comment.