Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from Yukuro/hotfix/deploy-vercel
Browse files Browse the repository at this point in the history
fix vercel deploy
  • Loading branch information
Yukuro authored May 20, 2023
2 parents 49327fe + 0c45d35 commit e8ed64a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- master
pull_request:

jobs:
deploy:
Expand Down Expand Up @@ -34,17 +35,15 @@ jobs:
run: hugo --minify -t hugo-theme-shell
working-directory: ./testenv

- name: Change Vercel Working Directory
run: vercel --cwd ./testenv --token=${{ secrets.VERCEL_TOKEN }}

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
if: ${{ github.ref == 'refs/heads/master' }}
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit e8ed64a

Please sign in to comment.