computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
1 year ago
|
name: App Deployment
|
||
2 years ago
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
env:
|
||
2 years ago
|
PUBLIC_API_URL: "https://api.roadmap.sh"
|
||
1 year ago
|
PUBLIC_EDITOR_APP_URL: "https://draw.roadmap.sh"
|
||
2 years ago
|
PUBLIC_AVATAR_BASE_URL: "https://dodrc8eu8m09s.cloudfront.net/avatars"
|
||
2 years ago
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
CI: true
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
1 year ago
|
- uses: actions/checkout@v4
|
||
2 years ago
|
with:
|
||
|
persist-credentials: false
|
||
|
- uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: 18
|
||
1 year ago
|
- name: Prepare Draw Repository
|
||
|
run: |
|
||
|
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
|
||
2 years ago
|
- uses: pnpm/action-setup@v2.2.2
|
||
|
with:
|
||
|
version: 7.13.4
|
||
|
- name: Setup Environment
|
||
|
run: |
|
||
|
pnpm install
|
||
|
- name: Generate meta and build
|
||
|
run: |
|
||
1 year ago
|
npm run generate-renderer
|
||
2 years ago
|
npm run build
|
||
2 years ago
|
touch ./dist/.nojekyll
|
||
2 years ago
|
echo 'roadmap.sh' > ./dist/CNAME
|
||
2 years ago
|
- name: Deploy to GH Pages
|
||
|
run: |
|
||
|
git config user.email "kamranahmed.se@gmail.com"
|
||
|
git config user.name "Kamran Ahmed"
|
||
|
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
||
|
npm run deploy
|