Skip to content

Commit b200ba7

Browse files
committed
fix github actions node env error
1 parent 3f6401d commit b200ba7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ jobs:
2424
- name: Build
2525
run: hugo --gc
2626

27-
- name: create env file
28-
run: |
29-
touch .env
30-
echo WEBPUSHRKEY =${{ secrets.WEBPUSHRKEY }} >> .env
31-
echo WEBPUSHRAUTHTOKEN =${{ secrets.WEBPUSHRAUTHTOKEN }} >> .env
32-
3327
- name: New Post Check
3428
uses: actions/setup-node@v2
3529
with:
3630
node-version: '12'
3731
- run: npm install node-fetch
3832
- run: node _tools/newpostcheck.js
33+
env:
34+
WEBPUSHRKEY: ${{secrets.WEBPUSHRKEY}}
35+
WEBPUSHRAUTHTOKEN: ${{secrets.WEBPUSHRAUTHTOKEN}}
3936

4037
- name: Deploy
4138
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)