Skip to content

Commit

Permalink
add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gvkhna committed May 23, 2024
1 parent 067b3fc commit 79abc75
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,16 @@ jobs:
run: pnpm install --frozen-lockfile
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
working-directory: ${{ env.BUILD_PATH }}
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
PUBLIC_WEB_HOSTNAME: ${{ vars.PUBLIC_WEB_HOSTNAME }}
CLOUDFLARE_PROJECT_NAME: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLIC_GITHUB_CLIENT_ID: ${{ vars.PUBLIC_GITHUB_CLIENT_ID }}
PUBLIC_WEB_HOSTNAME: ${{ vars.PUBLIC_WEB_HOSTNAME }}
run: |
pnpm run proto
pnpm astro build
pnpm wrangler d1 migrations apply warpdive-db --remote --env production
working-directory: ${{ env.BUILD_PATH }}
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: ${{ env.BUILD_PATH }}/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
pnpm wrangler pages deploy ${{ env.BUILD_PATH }}/dist

0 comments on commit 79abc75

Please sign in to comment.