fast deploys #283
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: 'Production Branch' | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
run-all-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: echo hello world | |
run: echo "hello world" | |
# deploy-all-subgraphs: | |
# if: ${{ github.repository_owner == 'unlock-protocol' }} | |
# needs: run-all-tests | |
# uses: ./.github/workflows/_subgraph.yml | |
# secrets: | |
# SUBGRAPH_DEPLOY_KEY: ${{ secrets.SUBGRAPH_DEPLOY_KEY }} | |
# deploy-locksmith-production: | |
# if: ${{ github.repository_owner == 'unlock-protocol' }} | |
# needs: run-all-tests | |
# uses: ./.github/workflows/_heroku.yml | |
# with: | |
# bypass_diff_check: bypass | |
# service: locksmith | |
# app-name: unlock-locksmith-production | |
# secrets: | |
# HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} | |
# HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
# OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
# deploy-locksmith-websub-production: | |
# if: ${{ github.repository_owner == 'unlock-protocol' }} | |
# needs: run-all-tests | |
# uses: ./.github/workflows/_heroku.yml | |
# with: | |
# bypass_diff_check: bypass | |
# service: locksmith-websub | |
# build-dir: locksmith | |
# command: 'yarn worker' | |
# container-type: worker | |
# app-name: locksmith-websub-production | |
# secrets: | |
# HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} | |
# HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
# OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
# Netlify Deployments | |
deploy-paywall-app-production: | |
if: ${{ github.repository_owner == 'unlock-protocol' }} | |
needs: run-all-tests | |
uses: ./.github/workflows/_netlify.yml | |
with: | |
bypass_diff_check: bypass | |
service: paywall-app | |
target-env: prod | |
secrets: | |
SITE_ID: ${{ secrets.PAYWALL_APP_NETLIFY_PROD_SITE_ID }} | |
AUTH_TOKEN: ${{ secrets.PAYWALL_APP_NETLIFY_PROD_AUTH_TOKEN }} | |
deploy-wedlocks: | |
if: ${{ github.repository_owner == 'unlock-protocol' }} | |
needs: run-all-tests | |
uses: ./.github/workflows/_netlify.yml | |
with: | |
service: wedlocks | |
target-env: prod | |
bypass_diff_check: bypass | |
secrets: | |
SITE_ID: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SITE_ID }} | |
AUTH_TOKEN: ${{ secrets.WEDLOCKS_NETLIFY_PROD_AUTH_TOKEN }} | |
SMTP_HOST: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SMTP_HOST }} | |
SMTP_USERNAME: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SMTP_USERNAME }} | |
SMTP_PASSWORD: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SMTP_PASSWORD }} | |
BASE64_WEDLOCKS_PRIVATE_KEY: ${{ secrets.WEDLOCKS_NETLIFY_PROD_BASE64_WEDLOCKS_PRIVATE_KEY }} | |
deploy-unlock-app-production: | |
if: ${{ github.repository_owner == 'unlock-protocol' }} | |
needs: run-all-tests | |
uses: ./.github/workflows/_netlify.yml | |
with: | |
bypass_diff_check: bypass | |
service: unlock-app | |
target-env: prod | |
secrets: | |
SITE_ID: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_SITE_ID }} | |
AUTH_TOKEN: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_AUTH_TOKEN }} | |
NEXT_PUBLIC_BASE64_WEDLOCKS_PUBLIC_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_BASE64_WEDLOCKS_PUBLIC_KEY }} | |
NEXT_PUBLIC_STRIPE_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_STRIPE_KEY }} | |
NEXT_PUBLIC_ETHPASS_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_ETHPASS_KEY }} | |
NEXT_PUBLIC_UNLOCK_ENV: prod |