File tree Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -624,39 +624,38 @@ name: github pages
624
624
on:
625
625
push:
626
626
branches:
627
- - master
627
+ - master
628
628
629
629
jobs:
630
- build- deploy:
630
+ deploy:
631
631
runs-on: ubuntu-18.04
632
632
steps:
633
- - uses: actions/checkout@v1
633
+ - uses: actions/checkout@v2
634
634
635
- - name: Setup Node
636
- uses: actions/setup-node@v1
637
- with:
638
- node-version: '10.x'
635
+ - name: Setup Node
636
+ uses: actions/setup-node@v1
637
+ with:
638
+ node-version: '10.x'
639
639
640
- - name: Cache dependencies
641
- uses: actions/cache@v1
642
- with:
643
- path: ~/.npm
644
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
645
- restore-keys: |
646
- ${{ runner.os }}-node-
640
+ - name: Cache dependencies
641
+ uses: actions/cache@v1
642
+ with:
643
+ path: ~/.npm
644
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
645
+ restore-keys: |
646
+ ${{ runner.os }}-node-
647
647
648
- - run: npm ci
648
+ - run: npm ci
649
649
650
- - run: npm test
650
+ - run: npm test
651
651
652
- - run: npm run generate
652
+ - run: npm run generate
653
653
654
- - name: deploy
655
- uses: peaceiris/actions-gh-pages@v2
656
- env:
657
- ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
658
- PUBLISH_BRANCH: gh-pages
659
- PUBLISH_DIR: ./dist
654
+ - name: deploy
655
+ uses: peaceiris/actions-gh-pages@v3
656
+ with:
657
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
658
+ publish_dir: ./dist
660
659
` ` `
661
660
662
661
# ## ⭐️ Static Site Generators with Python
You can’t perform that action at this time.
0 commit comments