Skip to content

refactor: start of refactor from rakerman.com to radison.io #15

refactor: start of refactor from rakerman.com to radison.io

refactor: start of refactor from rakerman.com to radison.io #15

name: cloudflare_deploy_stage
on: [pull_request]
jobs:
nuxt:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 18 ]
env:
NUXT_DIR: nuxt
SUMMARIZE_DIR: nuxt/summarize
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v4
- name: Install Summarize Dependencies
run: npm i
working-directory: ${{ env.SUMMARIZE_DIR }}
- name: Validate Summarize Data
run: npm run validate
working-directory: ${{ env.SUMMARIZE_DIR }}
- name: Install Nuxt Dependencies
run: npm i
working-directory: ${{ env.NUXT_DIR }}
- name: Generate Summarize PDFs
run: npm run dev & sleep 15 && cd summarize && npm run compile
working-directory: ${{ env.NUXT_DIR }}
- name: Build Nuxt
run: npm run build
working-directory: ${{ env.NUXT_DIR }}
env:
NITRO_PRESET: cloudflare
- name: Publish Nuxt to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env staging
workingDirectory: ${{ env.NUXT_DIR }}