28 lines
640 B
YAML
28 lines
640 B
YAML
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
|
|
- name: Setup Environment
|
|
run: |
|
|
npm install -g yarn
|
|
yarn install
|
|
- name: Generate meta and builld
|
|
run: |
|
|
yarn meta
|
|
yarn build
|
|
env:
|
|
ROADMAP_GH_SECRET: ${{ secrets.GA_SECRET }}
|
|
- name: Deploy to GitHub Pages
|
|
run: |
|
|
git config user.email "kamranahmed.se@gmail.com"
|
|
git config user.name "Kamran Ahmed"
|
|
npm run deploy
|