fix: update docs links (#352) #110
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: "Semantic release" | |
concurrency: | |
group: semantic-release | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
release: | |
if: ${{ github.event.repository.full_name == github.repository }} && {{ !contains(github.event.head_commit.message, "skip ci") }} | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- uses: actions/checkout@v2 | |
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@v2 # using cache | |
- name: "Setup node@14" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: "Install dependencies" | |
run: | | |
yarn set version 3.2.0 | |
yarn install | |
- name: "Build & deploy to staging" | |
run: yarn docs:build | |
- uses: matter-labs/action-hosting-deploy@main | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZSYNC_WEB_DOCS_PROD }}" | |
projectId: zksync-web-docs | |
firebaseToolsVersion: 12.9.1 | |
target: staging | |
channelId: live | |
env: | |
APP_ENV: production | |
- name: "Pack generated distributive" | |
run: zip -r dist.zip dist firebase.json .firebaserc | |
- name: "Semantic release" | |
run: yarn semantic-release | |
env: | |
HUSKY: 0 | |
CI: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: dist.zip |