-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-api-and-changelog-app.yaml
More file actions
46 lines (40 loc) · 1.28 KB
/
deploy-api-and-changelog-app.yaml
File metadata and controls
46 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deploy API and Changelog App
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.18
- uses: actions/checkout@v4
- name: Install dependencies
run: bun install
- name: Deploy Changelog API
id: deploy-changelog-api
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: apps/changelog-api
packageManager: bun
- name: Build Changelog App
run: cd apps/changelog-app && bun run build
env:
VITE_CHANGELOG_API_URL: ${{ vars.VITE_CHANGELOG_API_URL }}
VITE_CHANGELOGS_APP_URL: ${{ vars.VITE_CHANGELOGS_APP_URL }}
VITE_SHORT_URL: ${{ vars.VITE_SHORT_URL }}
TZ: UTC
- name: Deploy Changelog App
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
workingDirectory: apps/changelog-app
packageManager: bun