Skip to content

Commit

Permalink
another go at making pages work
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Martian committed Oct 3, 2024
1 parent d0c419b commit 6e2d3ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v1
Expand All @@ -28,23 +32,18 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: ./docs # Path to the docs folder
name: github-pages
retention-days: 1

deploy-docs:
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: generate-docs
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 }}

url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy to GitHub Pages
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 6e2d3ed

Please sign in to comment.