Skip to content

Redeploy App

Redeploy App #29

Workflow file for this run

name: Redeploy App
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
workflow_dispatch:
permissions: read-all
jobs:
redeploy_dev:
name: Rebuild and Deploy to Production
if: ${{ github.repository == 'sws2apps/organized-app' && github.ref == 'refs/heads/main' }}
environment:
name: Production
url: https://organized-app.com
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout for release preparation
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: main
persist-credentials: false
- name: Use Node.js LTS version
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: lts/Iron
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Deploy project to Vercel
run: vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}