Skip to content

Workflow file for this run

name: Action | Auto deploy "production" to soonaverse.com
on:
push:
branches:
- switch_to_downtime_mode
jobs:
publish:
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: npm install
- name: Copy ENV variables
run: cp -f src/environments/environment.prod.ts src/environments/environment.ts
- name: Build project
run: npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
branch: main
directory: dist