Refactor deployment action

pull/1657/head
Kamran Ahmed 4 years ago committed by GitHub
parent 1df9bf730e
commit f666be4679
  1. 9
      .github/workflows/deploy.yml

@ -2,6 +2,11 @@ name: Deployment to GitHub Pages
on:
push:
branches: [ master ]
env:
ROADMAP_GA_SECRET: ${{ secrets.GA_SECRET }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
NEXT_TELEMETRY_DISABLED: 1
jobs:
build:
runs-on: ubuntu-latest
@ -18,11 +23,7 @@ jobs:
run: |
yarn meta
yarn build
env:
ROADMAP_GH_SECRET: ${{ secrets.GA_SECRET }}
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "kamranahmed.se@gmail.com"
git config user.name "Kamran Ahmed"

Loading…
Cancel
Save