Skip to content

Commit 08c86a0

Browse files
committed
Update gh actions
1 parent 2f1c1f8 commit 08c86a0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/blank.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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.
14
name: GitHub Pages
25
env:
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

0 commit comments

Comments
 (0)