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 2 replies

Comment options

HerbertHe
Jan 11, 2024
Maintainer Author

You must be logged in to vote
2 replies
@leiyou-li
Comment options

@Master-Archer
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
3 participants