Refactor deployment action
This commit is contained in:
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
@ -2,6 +2,11 @@ name: Deployment to GitHub Pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
env:
|
||||||
|
ROADMAP_GA_SECRET: ${{ secrets.GA_SECRET }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CI: true
|
||||||
|
NEXT_TELEMETRY_DISABLED: 1
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -18,11 +23,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn meta
|
yarn meta
|
||||||
yarn build
|
yarn build
|
||||||
env:
|
|
||||||
ROADMAP_GH_SECRET: ${{ secrets.GA_SECRET }}
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
git config user.email "kamranahmed.se@gmail.com"
|
git config user.email "kamranahmed.se@gmail.com"
|
||||||
git config user.name "Kamran Ahmed"
|
git config user.name "Kamran Ahmed"
|
||||||
|
Reference in New Issue
Block a user