Skip to content

feat: Use cloudflare images for our image provider #27

feat: Use cloudflare images for our image provider

feat: Use cloudflare images for our image provider #27

Workflow file for this run

name: Deploy to NuxtHub
on: push
jobs:
deploy:
name: "Deploy to NuxtHub"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
url: ${{ steps.deploy.outputs.deployment-url }}
permissions:
contents: read
id-token: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Download and install PostHog CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.0.5/posthog-cli-installer.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Ensure NuxtHub module is installed
run: pnpx nuxthub@latest ensure
- name: Build and prepare for deployment
run: pnpm turbo deploy:prepare
env:
POSTHOG_CLI_ENV_ID: ${{ vars.POSTHOG_CLI_ENV_ID }}
POSTHOG_CLI_TOKEN: ${{ vars.POSTHOG_CLI_TOKEN }}
- name: Deploy to NuxtHub
uses: nuxt-hub/action@v1
id: deploy
with:
project-key: visimate-b6ds