|
12 | 12 | required:false |
13 | 13 | default:0 |
14 | 14 | type:number |
| 15 | +deploy_webapp: |
| 16 | +description:"Whether to deploy web app" |
| 17 | +required:false |
| 18 | +default:true |
| 19 | +type:boolean |
15 | 20 | deploy_docs: |
16 | 21 | description:"Whether to deploy docs" |
17 | 22 | required:false |
|
38 | 43 | required:false |
39 | 44 | default:0 |
40 | 45 | type:number |
| 46 | +deploy_webapp: |
| 47 | +description:"Whether to deploy web app" |
| 48 | +required:false |
| 49 | +default:true |
| 50 | +type:boolean |
41 | 51 | deploy_docs: |
42 | 52 | description:"Whether to deploy docs" |
43 | 53 | required:false |
|
81 | 91 | fi |
82 | 92 | # https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#use-github-actions |
83 | 93 | # 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 }} |
84 | 104 | -name:Deploy docs |
85 | 105 | id:deploy-docs |
86 | 106 | if:${{ inputs.deploy_docs }} |
|