|
|
@ -25,13 +25,17 @@ jobs: |
|
|
PROGRESS: none |
|
|
PROGRESS: none |
|
|
NODE_ENV: test |
|
|
NODE_ENV: test |
|
|
NODE_OPTIONS: --max_old_space_size=4096 |
|
|
NODE_OPTIONS: --max_old_space_size=4096 |
|
|
deploy: |
|
|
build-and-deploy: |
|
|
name: Deploy to GitHub Pages |
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
if: success() && github.event == 'push' && github.ref == 'master' |
|
|
if: github.event == 'push' && github.ref == 'master' |
|
|
steps: |
|
|
steps: |
|
|
- name: publish |
|
|
- name: Checkout |
|
|
uses: maxheld83/ghpages@v0.2.1 |
|
|
uses: actions/checkout@master |
|
|
|
|
|
|
|
|
|
|
|
- name: Build and Deploy |
|
|
|
|
|
uses: JamesIves/github-pages-deploy-action@master |
|
|
env: |
|
|
env: |
|
|
BUILD_DIR: 'dist/' |
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} |
|
|
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} |
|
|
|
|
|
BRANCH: gh-pages |
|
|
|
|
|
FOLDER: "dist/" |
|
|
|
|
|
BUILD_SCRIPT: npm install && npm run deploy |
|
|
|