fix(infra): Mudar diretório build #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
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deploy.outputs.page_url }} | |
steps: | |
# Checkout project repository | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Setup Node.js environment | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
# Install dependencies | |
- name: Install dependencies | |
run: yarn install --prefer-offline | |
# Build Application | |
- name: Build application | |
run: yarn build | |
# Deploy to Github Pages | |
- id: deploy | |
name: Deploy to Github Pages | |
uses: fcodelabs/[email protected] | |
with: | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |