add toast #40
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .netrc | |
run: | | |
cat << EOF > $HOME/.netrc | |
machine git.heroku.com | |
login ${{ secrets.HEROKU_EMAIL }} | |
password ${{ secrets.HEROKU_API_KEY }} | |
EOF | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} | |
- name: Deploy to Heroku | |
run: | | |
heroku git:remote --app wingman | |
git push heroku +${GITHUB_REF#refs/heads/}:main | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} |