Skip to content

Add initial deployment configuration and redirect handling #1

Add initial deployment configuration and redirect handling

Add initial deployment configuration and redirect handling #1

Workflow file for this run

name: Deploy GitHub Pages (redirect only)
on:
push:
branches: [main]
paths:
- 'index.html'
- '404.html'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare redirect-only artifact
run: |
mkdir _pages
cp index.html _pages/
cp 404.html _pages/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: _pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4