feat: add CI CD (#135)

This commit is contained in:
Dream Hunter
2024-04-16 13:38:20 +08:00
committed by GitHub
parent d1e06b40cb
commit f43ec672f3
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ jobs:
run: |
cd worker/
echo ${{ secrets.BACKEND_TOML }} > wrangler.toml
export project_name = ${{ secrets.BACKEND_NAME }}
export project_name=${{ secrets.BACKEND_NAME }}
pnpm install --no-frozen-lockfile
pnpm run deploy:preview --project-name=$project_name
if [[ ${{ github.event.inputs.production }} == true ]]; then

View File

@@ -40,7 +40,7 @@ jobs:
run: |
cd frontend/
echo ${{ secrets.FRONTEND_ENV }} > .env.prod
export project_name = ${{ secrets.FRONTEND_NAME }}
export project_name=${{ secrets.FRONTEND_NAME }}
pnpm install --no-frozen-lockfile
pnpm run deploy:preview --project-name=$project_name
if [[ ${{ github.event.inputs.production }} == true ]]; then