Update deploy.yml
This commit is contained in:
parent
f15194e8f4
commit
c224dca587
1 changed files with 14 additions and 10 deletions
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
|
|
@ -5,17 +5,21 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install parcel
|
|
||||||
uses: borales/actions-yarn@v2.0.0
|
- name: Setup Node.js environment
|
||||||
|
uses: actions/setup-node@v2.1.2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npx parcel build src/index.html
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
cmd:
|
publish_dir: ./dist
|
||||||
global add parcel-bundler
|
|
||||||
- name: Build and deploy
|
|
||||||
uses: borales/actions-yarn@v2.0.0
|
|
||||||
with:
|
|
||||||
cmd:
|
|
||||||
deploy
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue