refactor(team): update team member about (#51) #97
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
| name: 'π CD (Website) β Publish' | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| name: Deploy | |
| steps: | |
| - name: Actions - Checkout | |
| uses: actions/checkout@v6 | |
| - name: Actions - Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| check-latest: true | |
| node-version: lts/* | |
| - name: Cache Dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: npm- | |
| - name: Installing Dependencies | |
| run: npm ci | |
| - name: Checking Types | |
| run: npm run typecheck | |
| - name: Checking Lint | |
| run: npm run lint | |
| - name: Testing | |
| run: npm test | |
| - name: Cache Docusaurus | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .docusaurus | |
| node_modules/.cache | |
| key: docusaurus-${{ hashFiles('docusaurus.config.ts', 'package-lock.json') }} | |
| restore-keys: docusaurus- | |
| - name: Building | |
| run: npm run build | |
| env: | |
| WORKER_DOMAIN: ${{ secrets.WORKER_DOMAIN }} | |
| WORKER_D1: ${{ secrets.WORKER_D1 }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| - name: Deploy β Worker | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.PAT }} | |
| publish_dir: ./server | |
| publish_branch: 'server' | |
| allow_empty_commit: false | |
| enable_jekyll: true | |
| - name: Deploy β Website | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.PAT }} | |
| publish_dir: ./build | |
| publish_branch: 'website' | |
| cname: jsconf.com.br | |
| allow_empty_commit: true |