Skip to content

fix: enable pages in workflow #2

fix: enable pages in workflow

fix: enable pages in workflow #2

Workflow file for this run

name: Deploy Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Build site artifact
run: |
rm -rf .dist
mkdir -p .dist
cp -R site/. .dist/
if [ -d output ]; then
mkdir -p .dist/output
cp -R output/. .dist/output/
fi
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: .dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4