feat(unlock-js): add Unlock v13 and PublicLock v14 support (#13196) #375
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 }} | |
# 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-vercel: | |
if: ${{ github.repository_owner == 'unlock-protocol' }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Load secrets from 1Password | |
uses: 1Password/load-secrets-action@v1.3.1 | |
with: | |
export-env: true | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
UNLOCK_APP_VERCEL_PROD_VERCEL_PROJECT_ID: op://secrets/vercel/project-id-unlock-app-prod | |
UNLOCK_APP_VERCEL_PROD_VERCEL_ORG_ID: op://secrets/vercel/org-id | |
UNLOCK_APP_VERCEL_PROD_VERCEL_TOKEN: op://secrets/vercel/deployment-token | |
UNLOCK_APP_VERCEL_PROD_NEXT_PUBLIC_BASE64_WEDLOCKS_PUBLIC_KEY: op://secrets/wedlocks/public-key | |
UNLOCK_APP_VERCEL_PROD_NEXT_PUBLIC_STRIPE_KEY: op://secrets/stripe/publishable-key-prod | |
UNLOCK_APP_VERCEL_PROD_NEXT_PUBLIC_ETHPASS_KEY: op://secrets/ethpass/username | |
UNLOCK_APP_VERCEL_PROD_NEXT_PUBLIC_UNLOCK_ENV: prod | |
- uses: ./.github/actions/vercel | |
with: | |
service: unlock-app | |
target-env: prod |