Skip to content

Content updates and UI improvements (#7) #8

Content updates and UI improvements (#7)

Content updates and UI improvements (#7) #8

name: Deploy to GitHub Pages (Production)
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Check SITE_URL variable
run: |
if [ -z "${{ vars.SITE_URL }}" ]; then
echo "::warning::SITE_URL variable is not set. Astro will not generate sitemaps or canonical URLs. Set it in Settings → Secrets and variables → Actions → Variables"
else
echo "SITE_URL is set to: ${{ vars.SITE_URL }}"
fi
- name: Install, build, and upload site
uses: withastro/action@v5
env:
SITE_URL: ${{ vars.SITE_URL }}
BASE_PATH: ${{ vars.BASE_PATH }}
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@v4