chore: initial setup

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-06-24 11:50:06 -03:00
commit 2686a045fd
23 changed files with 732 additions and 0 deletions

37
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Deploy to Vercel
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
if: ${{ github.repository == 'capytalcode/project-extrovert' }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
deployments: write
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
- name: Build
run: |
make build/static
- name: Deploy
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ SECRETS.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ SECRETS.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ SECRETS.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PRODUCTION: true