Skip to content

chore: move knapsack build to separate heroku-cleanup #14

chore: move knapsack build to separate heroku-cleanup

chore: move knapsack build to separate heroku-cleanup #14

Workflow file for this run

name: Deploy Knapsack Vital-DS
env:
CI: true
FORCE_COLOR: 1
on:
push:
branches:
- master # Note: temporary until PR merged into main
jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Use Node.js v16.9
# uses: actions/setup-node@v1
# with:
# node-version: 16.9
# - name: Setup
# run: npm run setup
deploy:
name: Deploy
if: github.ref == 'refs/heads/master' # Note: temporary until PR merged into main
# needs: [build]
runs-on: ubuntu-latest
env:
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_GIT_URL: ${{ secrets.HEROKU_GIT_URL }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master # Note: temporary until PR merged into main
- name: write auth
run: |
cat > ~/.netrc <<EOF
machine git.heroku.com
login $HEROKU_EMAIL
password $HEROKU_API_KEY
EOF
- name: git push to heroku for deploy
run: |
git remote add heroku $HEROKU_GIT_URL
git push heroku master