Skip to content

Added deploy preview app workflow #2

Added deploy preview app workflow

Added deploy preview app workflow #2

Workflow file for this run

name: Deploy Preview App
on:
workflow_dispatch:
inputs:
environment:
description: 'Choose an environment to deploy to: <dev|staging|prod>'
required: true
default: 'dev'
pull_request:
jobs:
deploy-preview:
runs-on: ubuntu-latest
name: Deploy Preview App
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Deploy to Cloudflare Pages
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
environment: ${{ github.event.inputs.environment }}
# command: pages deploy dist --project-name=algokit-lora
- name: print deployment-url
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL