Skip to content

Deploy to GitHub Pages #32

Deploy to GitHub Pages

Deploy to GitHub Pages #32

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ["CI"]
types:
- completed
branches:
- main
jobs:
build:
uses: ./.github/workflows/build.yml
with:
env_file: true
deploy:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist