Skip to content

Commit

Permalink
chore: Adicionar deploy automático
Browse files Browse the repository at this point in the history
  • Loading branch information
o-igor-trentini committed Feb 20, 2024
1 parent a816e56 commit 3e21e36
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy 🚀

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {port: 3000},
build: {outDir: 'build'},
})

0 comments on commit 3e21e36

Please sign in to comment.