Skip to content

Merge pull request #126 from G7DAO/staging #4

Merge pull request #126 from G7DAO/staging

Merge pull request #126 from G7DAO/staging #4

on:
push:
branches:
- main
paths:
- '.github/workflows/prod_deploy_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
jobs:
prod_deploy_wb-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and main branch
uses: actions/checkout@v2
with:
ref: main
- name: Set up node.js
uses: actions/setup-node@v3
with:
node-version: "20.14.0"
- name: Install and build production app
working-directory: ./webapps/world-builder-dashboard
run: |
npm install
npm run build
- name: Publish to CloudFlare Page
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_PROD }}
accountId: ${{ secrets.CF_ACCOUNT_ID_PROD }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_PROD }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}