36 lines
976 B
YAML
36 lines
976 B
YAML
name: Deploy to Production
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version to deploy'
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy to Production
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: production
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Bootstrap Project Atlas submodule
|
|
env:
|
|
PROJECT_ATLAS_SSH_PRIVATE_KEY: ${{ secrets.PROJECT_ATLAS_SSH_PRIVATE_KEY }}
|
|
run: bash ./scripts/ci/bootstrap-project-atlas-submodule.sh
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'pnpm'
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm build
|
|
- name: Deploy to production environment
|
|
run: |
|
|
echo "Deploying version ${{ github.event.inputs.version }} to production..."
|
|
# Add your deployment commands here
|