feat: adding docusaurus docs project #3
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 to GitHub Pages | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- '[0-9]+.*' | |
permissions: | |
contents: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
name: Deploy to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: matter-labs/block-explorer | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.BE_TEST_DOCS_DEPLOY_KEY }} | |
- name: Deploy to GitHub Pages | |
working-directory: ./packages/testing-docs | |
env: | |
USE_SSH: true | |
run: | | |
npm ci | |
npm run deploy |