From 2b8d18d88052df10ae3e40b1c65a8d723e770a40 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 22 Jun 2020 00:25:22 +0400 Subject: [PATCH] Refactor deployment action --- .github/workflows/deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 198946b7f..d446c2649 100644 --- a/.github/workflows/deploy.yml +++ b/.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"