1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 05:42:41 +02:00

Update deployment flow

This commit is contained in:
Kamran Ahmed
2025-04-05 00:12:50 +01:00
parent 0a42ea6f41
commit 06bdfc42d2
5 changed files with 270 additions and 14 deletions

View File

@@ -27,7 +27,6 @@ jobs:
- name: Copy configuration files
run: |
cp configuration/dist/github/developer-roadmap.env .env
git ls-remote https://${{ secrets.GITHUB_TOKEN }}@github.com/roadmapsh/web-draw.git
# -----------------
# Prepare the Build
@@ -38,9 +37,8 @@ jobs:
- name: Generate Production Build
run: |
LATEST_COMMIT_HASH=$(git ls-remote https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git refs/heads/main | awk '{print $1}')
echo "Using commit hash: $LATEST_COMMIT_HASH"
pnpm add "github:roadmapsh/web-draw#${LATEST_COMMIT_HASH}&path:packages/editor"
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
npm run generate-renderer
npm run compress:images
npm run build