Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
momok88 authored Feb 19, 2024
0 parents commit f3c25c2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to Heroku
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build application
run: npm run build

- name: Login to Heroku
uses: actions/heroku@v7
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: 'your-heroku-app-name'

- name: Deploy to Heroku
run: git push heroku main

0 comments on commit f3c25c2

Please sign in to comment.