Merge pull request #220 from G7DAO/feat/network-toggle #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |