Skip to content

📝 Change deployment branch from 'main' to 'master' #1

📝 Change deployment branch from 'main' to 'master'

📝 Change deployment branch from 'main' to 'master' #1

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install (none required) and generate protect.js
env:
SITE_PASSWORD: ${{ secrets.SITE_PASSWORD }}
run: |
node generate_hash.js
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir should point at the directory that contains index.html
# If your site is in the repo root:
publish_dir: ./