File tree Expand file tree Collapse file tree 1 file changed +26
-27
lines changed Expand file tree Collapse file tree 1 file changed +26
-27
lines changed Original file line number Diff line number Diff line change @@ -567,45 +567,44 @@ name: github pages
567
567
on:
568
568
push:
569
569
branches:
570
- - master
570
+ - master
571
571
572
572
jobs:
573
- build- deploy:
573
+ deploy:
574
574
runs-on: ubuntu-18.04
575
575
steps:
576
- - uses: actions/checkout@v1
576
+ - uses: actions/checkout@v2
577
577
578
- - name: Setup Node
579
- uses: actions/setup-node@v1
580
- with:
581
- node-version: '10.x'
578
+ - name: Setup Node
579
+ uses: actions/setup-node@v1
580
+ with:
581
+ node-version: '10.x'
582
582
583
- - name: Get yarn cache
584
- id: yarn-cache
585
- run: echo "::set-output name=dir::$(yarn cache dir)"
583
+ - name: Get yarn cache
584
+ id: yarn-cache
585
+ run: echo "::set-output name=dir::$(yarn cache dir)"
586
586
587
- - name: Cache dependencies
588
- uses: actions/cache@v1
589
- with:
590
- path: ${{ steps.yarn-cache.outputs.dir }}
591
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
592
- restore-keys: |
593
- ${{ runner.os }}-yarn-
587
+ - name: Cache dependencies
588
+ uses: actions/cache@v1
589
+ with:
590
+ path: ${{ steps.yarn-cache.outputs.dir }}
591
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
592
+ restore-keys: |
593
+ ${{ runner.os }}-yarn-
594
594
595
- - run: yarn install
595
+ - run: yarn install
596
596
597
- - run: yarn build
597
+ - run: yarn build
598
598
599
- - run: yarn export
599
+ - run: yarn export
600
600
601
- - run: touch ./out/.nojekyll
601
+ - run: touch ./out/.nojekyll
602
602
603
- - name: deploy
604
- uses: peaceiris/actions-gh-pages@v2
605
- env:
606
- ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
607
- PUBLISH_BRANCH: gh-pages
608
- PUBLISH_DIR: ./out
603
+ - name: Deploy
604
+ uses: peaceiris/actions-gh-pages@v3
605
+ env:
606
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
607
+ publish_dir: ./out
609
608
` ` `
610
609
611
610
# ## ⭐️ Vue and Nuxt
You can’t perform that action at this time.
0 commit comments