Lägg till github deploy.yml för att kunna serva github pages till /src istället för root
Deploy to GitHub Pages / deploy (push) Failing after 3m29s
Deploy to GitHub Pages / deploy (push) Failing after 3m29s
Signed-off-by: Philip Nordlund Fällman <philip.nordlundfallman@realgymnasiet.se>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./src # 👈 serves your /src folder directly
|
||||
|
||||
- uses: actions/deploy-pages@v4
|
||||
id: deployment
|
||||
Reference in New Issue
Block a user