Changed pages workflow
This commit is contained in:
parent
4c737475d4
commit
123a0ccd70
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -1,6 +1,9 @@
|
|||||||
name: Test & Deploy
|
name: Test & Deploy
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -8,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@master
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
npm i
|
npm i
|
||||||
@ -24,8 +27,8 @@ jobs:
|
|||||||
- name: UI Tests
|
- name: UI Tests
|
||||||
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@master
|
uses: peaceiris/actions-gh-pages@v2.4.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
BRANCH: gh-pages
|
PUBLISH_BRANCH: gh-pages
|
||||||
FOLDER: build/prod
|
PUBLISH_DIR: ./build/prod
|
||||||
|
Loading…
Reference in New Issue
Block a user