Merge pull request #413 from runcycles/amavashev-home-contact-patch-1 #475
This file contains hidden or 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
| # .github/workflows/deploy.yml | |
| name: Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: runcycles/cycles-protocol | |
| path: cycles-protocol | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: runcycles/cycles-server-admin | |
| path: cycles-server-admin | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install Chrome dependencies for Puppeteer | |
| run: | | |
| sudo apt-get update | |
| # libasound2 is renamed to libasound2t64 in Ubuntu 24.04 — try both | |
| sudo apt-get install -y \ | |
| libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \ | |
| libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \ | |
| libgbm1 libpango-1.0-0 libcairo2 | |
| sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2 | |
| - run: npm install | |
| - run: npm run build:with-pdfs | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: .vitepress/dist | |
| - uses: actions/deploy-pages@v4 | |
| id: deployment |