Skip to content

How to deploy with GitHub Pages #35

Answered by HerbertHe
HerbertHe asked this question in Q&A
Discussion options

You must be logged in to vote

Deploy with GitHub Pages as followed:

  • fork the repo

  • modify the GitHub action workflows files deploy.yml and schedule.yaml

  • deploy.yml

name: update script

on:
    push:
        branches: [main]

jobs:
    build:
        runs-on: ubuntu-latest

        strategy:
            matrix:
                node-version: [18.x]
                # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

        steps:
            - uses: actions/checkout@v3
            - name: Use Node.js ${{ matrix.node-version }}
              uses: actions/setup-node@v3
              with:
                  node-version: ${{ matrix.node-version }}
                  cache: "npm"
      …

Replies: 1 comment 1 reply

Comment options

HerbertHe
Jan 11, 2024
Maintainer Author

You must be logged in to vote
1 reply
@leiyou-li
Comment options

Answer selected by HerbertHe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants