Update landing.html #315
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 Skunkworks Contact Form | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.jscode | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install | |
working-directory: ./backend | |
- name: Deploy to Heroku | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }} | |
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} | |
run: | | |
echo "machine api.heroku.com" >> ~/.netrc | |
echo " login ${{ secrets.HEROKU_EMAIL }}" >> ~/.netrc | |
echo " password ${{ secrets.HEROKU_API_KEY }}" >> ~/.netrc | |
echo "machine git.heroku.com" >> ~/.netrc | |
echo " login ${{ secrets.HEROKU_EMAIL }}" >> ~/.netrc | |
echo " password ${{ secrets.HEROKU_API_KEY }}" >> ~/.netrc | |
git remote add heroku https://git.heroku.com/${{ env.HEROKU_APP_NAME }}.git | |
git push heroku main | |
working-directory: ./backend |