From 7564895d7a6d256fed99730a4afb6c773d538a76 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 4 Apr 2025 20:55:35 +0100 Subject: [PATCH] Make deployment script accept pat --- .github/workflows/deployment.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 32f04ec50..d956c016b 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -3,6 +3,9 @@ name: Deploy to EC2 on: workflow_dispatch: +env: + GH_PAT: ${{ secrets.GH_PAT }} + jobs: deploy: runs-on: ubuntu-latest @@ -36,9 +39,11 @@ jobs: pnpm install - name: Generate Production Build + env: + GH_PAT: ${{ secrets.GH_PAT }} run: | git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1 - GH_PAT=${{ secrets.GH_PAT }} npm run generate-renderer + npm run generate-renderer npm run compress:images npm run build