Set up GitHub Actions workflow for GitHub Pages deployment - 1 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest # The action will run on the latest version of Ubuntu. | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 # Updated to v3 | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 # Updated to v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ |