Skip to content

Commit

Permalink
feat: add heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbrot committed Mar 16, 2024
1 parent 7b80ae2 commit 95e0c63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ jobs:
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: "Set Heroku app & branch for ${{ github.ref }}"
run: |
echo $GITHUB_REF
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
echo "HEROKU_APP=dsomm" >> $GITHUB_ENV
echo "HEROKU_APP=" >> $GITHUB_ENV
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
fi
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
- name: "Deploy ${{ github.ref }} to Heroku"
uses: akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 #v3.12.14
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ env.HEROKU_APP }}
heroku_app_name: "dsomm"
heroku_email: [email protected]
branch: ${{ env.HEROKU_BRANCH }}

0 comments on commit 95e0c63

Please sign in to comment.