mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 13:52:46 +02:00
Make deployment script accept pat
This commit is contained in:
5
.github/workflows/deployment.yml
vendored
5
.github/workflows/deployment.yml
vendored
@@ -3,9 +3,6 @@ name: Deploy to EC2
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -41,7 +38,7 @@ jobs:
|
|||||||
- name: Generate Production Build
|
- name: Generate Production Build
|
||||||
run: |
|
run: |
|
||||||
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
|
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
|
||||||
npm run generate-renderer
|
GH_PAT=${{ secrets.GH_PAT }} npm run generate-renderer
|
||||||
npm run compress:images
|
npm run compress:images
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user