-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api-node): deploy to render (#22181)
- Loading branch information
1 parent
1d78178
commit 04bf966
Showing
1 changed file
with
5 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |