mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 12:40:03 +02:00
Make deployment script accept pat
This commit is contained in:
7
.github/workflows/deployment.yml
vendored
7
.github/workflows/deployment.yml
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user