Merge pull request #6 from microsoft/feat/gh_pages_deployment
Feat/gh pages deployment
This commit is contained in:
Коммит
e7e1923758
|
@ -1,15 +1,15 @@
|
|||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-documentation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 14.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
|
@ -19,9 +19,8 @@ jobs:
|
|||
- run: yarn bundle
|
||||
- run: yarn assets
|
||||
|
||||
- name: deploy
|
||||
- name: Deploy to GH Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
env:
|
||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: ./build
|
||||
with:
|
||||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
publish_dir: ./build
|
||||
|
|
Загрузка…
Ссылка в новой задаче