File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ # Just grant "Read and write permissions" in "Workflow permissions" (/settings/actions) of your repo to make it working.
2+ # Then push it.
3+ # And select `gh-pages` branch in "GitHub Pages" - "Build and deployment" (/settings/pages) settings. That's all.
14name : GitHub Pages
25env :
36 branch_name : gh-pages
@@ -11,16 +14,16 @@ jobs:
1114 Deploy : # Will copy `dist/*` files to `gh-pages` branch for deploying on GHP
1215 runs-on : ubuntu-latest
1316 steps :
14- - uses : actions/setup-node@v1
17+ - uses : actions/setup-node@v4
1518 with :
16- node-version : " 16 "
17- - uses : actions/checkout@v2
19+ node-version : " 20 "
20+ - uses : actions/checkout@v4
1821 - name : Info
1922 run : node -v && pwd && ls -la
2023 - name : Create Git user
2124 run : git config --global user.email "${{github.actor}}@users.noreply.github.com" && git config --global user.name "${{github.actor}}"
2225 - name : Github NPM log in
23- run : echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
26+ run : echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
2427 - name : Init && Build
2528 run : npm ci && npm run build
2629 - name : Init Git
You can’t perform that action at this time.
0 commit comments