Add github pages deploy workflow
Cette révision appartient à :
Parent
195595a5fe
révision
5ba319fd25
1 fichiers modifiés avec 33 ajouts et 0 suppressions
33
.github/workflows/cd.yml
externe
Fichier normal
33
.github/workflows/cd.yml
externe
Fichier normal
|
@ -0,0 +1,33 @@
|
|||
name: cd
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
cd:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: [14]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Setup node env
|
||||
uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate
|
||||
run: yarn generate
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist
|
Référencer dans un nouveau ticket