Skip to content

Commit

Permalink
improve deploy step:
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Martian committed Oct 3, 2024
1 parent 90d9f94 commit 846ca33
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pages-workflow
name: Generate and Deploy Docs

on:
push:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
run: bun run docs

- name: Upload artifacts
uses: actions/upload-pages-artifact@v1
uses: actions/upload-artifact@v4
with:
path: ./docs # Path to the docs folder

Expand All @@ -41,7 +41,14 @@ jobs:
permissions:
pages: write # Needed to deploy to GitHub Pages
id-token: write # Needed for authentication
actions: read

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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

0 comments on commit 846ca33

Please sign in to comment.