Skip to content

Commit 07acf6a

Browse files
committed
Migrate webapp to cloudflare pages
1 parent 83948db commit 07acf6a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/_deploy-sites.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
required: false
1313
default: 0
1414
type: number
15+
deploy_webapp:
16+
description: "Whether to deploy web app"
17+
required: false
18+
default: true
19+
type: boolean
1520
deploy_docs:
1621
description: "Whether to deploy docs"
1722
required: false
@@ -38,6 +43,11 @@ on:
3843
required: false
3944
default: 0
4045
type: number
46+
deploy_webapp:
47+
description: "Whether to deploy web app"
48+
required: false
49+
default: true
50+
type: boolean
4151
deploy_docs:
4252
description: "Whether to deploy docs"
4353
required: false
@@ -81,6 +91,16 @@ jobs:
8191
fi
8292
# https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#use-github-actions
8393
# TODO: Make this reusable
94+
- name: Deploy web app
95+
id: deploy-webapp
96+
if: ${{ inputs.deploy_webapp }}
97+
uses: cloudflare/wrangler-action@v3
98+
with:
99+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
100+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
101+
command: pages publish "packages/altair-app/dist/browser" --project-name="altair-webapp"
102+
# Optional: Enable this if you want to have GitHub Deployments triggered
103+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
84104
- name: Deploy docs
85105
id: deploy-docs
86106
if: ${{ inputs.deploy_docs }}

0 commit comments

Comments
 (0)