New CNAME 2 #44
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
# Fluxo de trabalho simples para implantar | |
# conteúdo estático na GitHub Pages | |
name: Deploy static content to Pages | |
on: | |
# Executa sobre as atualizações mirando o ramo padrão | |
push: | |
branches: ['main'] | |
# Permite-nos executar este fluxo de trabalho manualmente | |
# a partir da aba de Ações (ou `Actions`) | |
workflow_dispatch: | |
# Define as permissões do GITHUB_TOKEN para permitir | |
# a implementação na GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Permitir uma implementação simultânea | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
# Único trabalho de implementação | |
# uma vez que apenas estamos implementando | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# Carregar a pasta de distribuição | |
path: './dist' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |