Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

fix: part 1 update zk stack warning callout to deprecate and mention … #659

fix: part 1 update zk stack warning callout to deprecate and mention …

fix: part 1 update zk stack warning callout to deprecate and mention … #659

Workflow file for this run

name: "Deploy production"
on:
push:
branches: [main]
jobs:
build_and_deploy:
if: ${{ github.event.repository.full_name == github.repository }}
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
# Whether to configure the token or SSH key with the local git config
# Default: true
persist-credentials: false # <--- checking this in commit context
- name: "Enable yarn cache"
uses: c-hive/gha-yarn-cache@d528cd63c28aed0a9f44b1cada95050d7aa95c2e # v2 # using cache
- name: "Setup node@14"
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: "lts/*"
- name: "Install dependencies"
run: |
yarn set version 3.1.1
yarn install
- name: "Deploy production"
run: yarn run docs:build
env:
RUDDERSTACK_WRITE_KEY: "${{ secrets.RUDDERSTACK_WRITE_KEY }}"
RUDDERSTACK_DATA_PLANE_URL: "${{ secrets.RUDDERSTACK_DATA_PLANE_URL }}"
- uses: matter-labs/action-hosting-deploy@main
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AQWZX_ZKSYNC_V2_DOCS }}"
target: prod
projectId: aqwzx-zksync-v2-docs
channelID: live
- name: Purge cf cache
uses: nathanvaughn/actions-cloudflare-purge@db8c58f61ba4c3ec77229c8fa14ddebb3b59932f # v3.1.0
with:
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
cf_auth: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
hosts: |
docs.zksync.io
era.zksync.io
v2-docs.zksync.io
# TODO: Implement reindex task tracking instead of blindly exiting on task submit
- name: Trigger Algolia reindex
run: |
curl -X POST "${{ secrets.ALGOLIA_CRAWLER_BASE_URL }}/crawlers/${{ secrets.ALGOLIA_CRAWLER_ID }}/reindex" \
-H "Content-Type: application/json" \
--user "${{ secrets.ALGOLIA_CRAWLER_USER_ID }}:${{ secrets.ALGOLIA_CRAWLER_API_KEY }}"