Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kovarike committed Sep 10, 2024
1 parent fc30b75 commit c111ed0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ jobs:
- name: Install Vercel CLI
run: npm install -g vercel

- name: 📤 Pull Vercel Environment Information
- name: Pull Vercel Environment Information
run: |
vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
- name: Deploy to Vercel
id: deploy
run: |
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} --confirm --output=deploy.json
- name: Deploy Project Artifacts to Vercel
- name: Set Alias
run: |
vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
vercel alias --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` algorithmss.com.br
DEPLOY_URL=$(jq -r '.url' deploy.json)
vercel alias --token=${{ secrets.VERCEL_TOKEN }} set $DEPLOY_URL algorithmss.com.br
3 changes: 2 additions & 1 deletion .github/workflows/preview-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Build the project
run: |
npm run build
vercel build # Adiciona o comando de construção prebuilt
- name: Install Vercel CLI
run: npm install -g vercel
Expand All @@ -37,6 +38,6 @@ jobs:

- name: Deploy to Vercel
run: |
vercel --token ${{ secrets.VERCEL_TOKEN }} --prebuilt --archive=tgz
vercel --token ${{ secrets.VERCEL_TOKEN }} --prebuilt
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 comments on commit c111ed0

Please sign in to comment.