ci: add github pages deploy

This commit is contained in:
2026-06-11 13:04:36 +05:00
parent d3d74abca1
commit f8df409d57
7 changed files with 67 additions and 18 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v6
- name: Install, build, and upload your site
uses: withastro/action@v6
env:
BASE_PATH: /lopata
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5