Skip to content

Merge pull request #194 from G7DAO/feat/network-toggle #76

Merge pull request #194 from G7DAO/feat/network-toggle

Merge pull request #194 from G7DAO/feat/network-toggle #76

on:
push:
branches:
- staging
paths:
- '.github/workflows/staging_deploy_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
jobs:
staging_deploy_wb-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and main branch
uses: actions/checkout@v2
with:
ref: staging
- name: Set up node.js
uses: actions/setup-node@v3
with:
node-version: "20.14.0"
- name: Install and build staging app
working-directory: ./webapps/world-builder-dashboard
run: |
npm install
npm run build
- name: Update robots.txt, block alpha for crawlers
working-directory: ./webapps/world-builder-dashboard/dist
run: |
sed -i "s/Disallow:.*/Disallow: \//" robots.txt
- name: Publish to CloudFlare Page
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_STAGE }}
accountId: ${{ secrets.CF_ACCOUNT_ID_STAGE }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_STAGE }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}