Deploy production #83
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: "Deploy production" | |
concurrency: | |
group: deploy-production | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
description: "A release version to deploy, e.g. 1.0.0" | |
required: true | |
default: "1.0.0" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- name: Download Dist package | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
version: "tags/${{ github.event.inputs.version }}" | |
file: "dist.zip" | |
target: "dist.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Unzip Dist package | |
run: unzip dist.zip -d ./ | |
- uses: matter-labs/action-hosting-deploy@main | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZSYNC_WEB_DOCS_PROD }}' | |
channelId: live | |
target: prod | |
projectId: zksync-web-docs | |
firebaseToolsVersion: 12.9.1 | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |