Closed jrappen closed 3 years ago
Thanks, maybe don't need to change so much
-name: build docs
+name: deploy
on:
push:
branches: [ master ]
- pull_request:
- branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.page }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true
-name: build docs
+name: test
on:
- push:
- branches: [ master ]
pull_request:
branches: [ master ]
jobs:
- build-and-deploy:
+ test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npm run build
- - name: Deploy
- uses: JamesIves/github-pages-deploy-action@3.6.2
- with:
- GITHUB_TOKEN: ${{ secrets.page }}
- BRANCH: gh-pages
- FOLDER: dist
- CLEAN: true
Sure, whatever works for you.
Workflow replacements as discussed in #28.
deploy
test