From 38e463a1f6a7790cd8dfaadc6336f3825df9cadc Mon Sep 17 00:00:00 2001 From: Jake Love Date: Mon, 16 Oct 2023 17:38:20 -0700 Subject: [PATCH] Add workflows for ks build and heroku deploy --- .github/workflows/main.yml | 78 ++++++++++++++++++++++++++++++ .github/workflows/pull-request.yml | 49 +++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..aad5e30f577 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,78 @@ +# Helpful Doc Links +# Workflow syntax - https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions +# Context and expression syntax - https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions + +name: Main + +on: + push: + branches: + - main + +jobs: + deploy: + name: Deploy + if: github.ref == 'refs/heads/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: + # Number of commits to fetch. 0 indicates all history for all branches and tags - needed for `auto` + fetch-depth: 0 + ref: main + - name: write auth + run: | + cat > ~/.netrc <