This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
Discontinued #6
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
name: Deploy to heroku | |
on: | |
push: | |
branches: | |
- v3 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Development Code | |
uses: actions/checkout@v2 | |
- name: Use Node.js 17.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- run: npm install | |
- name: Deploy to Heroku | |
uses: akhileshns/[email protected] | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} | |
heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
# Recently heroku faced a massive github token leakage. So, this is the best way to deploy with heroku without any critical flaw. |