-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staging wb dashboard deployment workflow
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |