Skip to content

Deploy to Production #3

Deploy to Production

Deploy to Production #3

Workflow file for this run

name: Deploy to Production
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install deps
run: npm ci
- name: Build
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: miso-landing-web
url: ${{ steps.deploy-step.outputs.deployment-url }}
outputs:
deployment-url: ${{ steps.deploy-step.outputs.deployment-url }}
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
- name: Deploy to Cloudflare Pages
id: deploy-step
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=miso-landing-web