Skip to content

Managed by Terraform #38

Managed by Terraform

Managed by Terraform #38

Workflow file for this run

name: Deploy main
on:
push:
branches:
- main
env:
APP_URL: https://peñas.montemayordepililla.cc
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_REDIRECT_URI: https://xn--peas-hqa.montemayordepililla.cc/login/callback
DATABASE_URL: file:./dev.db
JWK: ${{ secrets.JWK }}
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Create .env file
uses: CallePuzzle/[email protected]
with:
variableNames: DATABASE_URL,AUTH0_DOMAIN,AUTH0_CLIENT_ID,AUTH0_CLIENT_SECRET,JWK
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install --pure-lockfile
- name: D1 Migrations Apply
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
wranglerVersion: 3.74.0
command: d1 migrations apply donde-esta-tu-local --remote
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
wranglerVersion: 3.74.0