neko/.github/workflows/webpage_deploy.yml
2025-03-30 17:29:44 +02:00

35 lines
865 B
YAML

name: Build and Deploy Webpage to GitHub Pages
on:
push:
branches:
- master
paths:
- webpage/**
- .github/workflows/webpage_deploy.yml
jobs:
webpage-build:
name: Build Webpage Artifacts
uses: .github/workflows/webpage_build.yml
secrets: inherit
webpage-deploy:
name: Deploy to GitHub Pages
needs: webpage-build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4