Skip to content

Create deploy.yml

Create deploy.yml #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # Change this to your main branch name
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build and Deploy
run: |
mkdir -p dist
cp src/html/index.html dist/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}