Skip to content

Commit

Permalink
Staging wb dashboard deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kompotkot committed Sep 26, 2024
1 parent 938c5cd commit 120f178
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/staging_deploy_wb-dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- main
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: main

- 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: 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 }}

0 comments on commit 120f178

Please sign in to comment.