From edaa4e142efb35517f4b4d4faee5d158da991d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Nordlund=20F=C3=A4llman?= Date: Wed, 4 Mar 2026 09:05:55 +0100 Subject: [PATCH] =?UTF-8?q?L=C3=A4gg=20till=20github=20deploy.yml=20f?= =?UTF-8?q?=C3=B6r=20att=20kunna=20serva=20github=20pages=20till=20/src=20?= =?UTF-8?q?ist=C3=A4llet=20f=C3=B6r=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philip Nordlund Fällman --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..96be9b7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file