deploy to heroku #1
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: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby 2.6.4 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6.4 | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle install | |
- name: Deploy to Heroku | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: | | |
git remote add heroku https://git.heroku.com/sthlmrb.git | |
git push heroku master |