Add deployment github action

This commit is contained in:
Kamran Ahmed
2020-06-22 00:06:44 +04:00
committed by GitHub
parent 9d2fdfa7cf
commit ab15d91614

20
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Deployment to GitHub Pages
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install -g yarn
- run: |
yarn install
yarn meta
yarn build
env:
ROADMAP_GH_SECRET: ${{ secrets.GA_SECRET }}
- run: npm run deploy