We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8085e9 commit d7e066cCopy full SHA for d7e066c
.github/workflows/forecast-request.yml
@@ -86,6 +86,27 @@ jobs:
86
sleep $((RANDOM % 5 + 2))
87
done
88
89
+ - name: Setup Node for site build
90
+ uses: actions/setup-node@v4
91
+ with:
92
+ node-version: 20
93
+ cache: npm
94
+ cache-dependency-path: site/package-lock.json
95
+
96
+ - name: Build Astro site
97
+ working-directory: site
98
+ run: |
99
+ npm ci
100
+ npm run build
101
102
+ - name: Deploy to Cloudflare Pages
103
+ uses: cloudflare/wrangler-action@v3
104
105
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
106
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
107
+ workingDirectory: site
108
+ command: pages deploy dist --project-name forecastingapi --branch main
109
110
deploy:
111
if: github.event_name == 'push'
112
runs-on: ubuntu-latest
0 commit comments