From 6aa3cd2ba9f0b365dbed155d1f1749b1113f5f84 Mon Sep 17 00:00:00 2001 From: Albert Date: Tue, 15 Oct 2024 11:57:38 +0200 Subject: [PATCH] deploy to heroku --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..417612a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +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