Skip to content

Commit

Permalink
feat(api-node): deploy to render (#22181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Jan 1, 2025
1 parent 1d78178 commit 04bf966
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1047,29 +1047,9 @@ jobs:
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
- name: Deploy to Render
uses: johnbeynon/[email protected]
with:
node-version-file: web/.node-version
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build web
run: |
cd api-node
npm run build:web
cd ..
rm -f .gitignore
git add .
git config --global user.name "Hongbo Miao"
git config --global user.email "[email protected]"
git commit --message="chore(api-node): build web"
- name: Install Heroku CLI
run: |
curl https://cli-assets.heroku.com/install.sh | sh
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: production-web
heroku_email: [email protected]
appdir: api-node
service-id: ${{ secrets.MY_RENDER_SERVICE_ID }}
api-key: ${{ secrets.MY_RENDER_API_KEY }}
wait-for-success: true

0 comments on commit 04bf966

Please sign in to comment.