feat: adiciona link para o Código de Conduta no cabeçalho #20
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: Deploy website 🚀 | |
| on: | |
| # Faz deploy a cada push na main | |
| push: | |
| branches: ['main'] | |
| # Permite rodar manualmente | |
| workflow_dispatch: | |
| # Permissões para o GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Só um deploy por vez | |
| concurrency: | |
| group: 'pages' | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| if: github.repository == 'PythonNorteBrasil/site' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install --force | |
| - name: Build (Next.js) | |
| run: npm run build | |
| # se o seu build NÃO faz export estático, | |
| # você pode usar: | |
| # run: | | |
| # npm run build | |
| # npx next export | |
| - name: Configure GitHub Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # 👉 pasta gerada pelo next export | |
| path: ./out | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |