-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflow): add api production workflow
- Loading branch information
1 parent
94891ab
commit c85b731
Showing
4 changed files
with
136 additions
and
76 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,48 @@ | ||
name: api@production | ||
|
||
on: | ||
push: | ||
tags: | ||
- "api@*" | ||
|
||
env: | ||
pnpm-version: 9 | ||
node-version: 20 | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.pnpm-version }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.node-version }} | ||
cache: "pnpm" | ||
|
||
- run: pnpm install -P | ||
|
||
- run: pnpm build | ||
working-directory: apps/cloudflare | ||
|
||
deploy: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: api:production | ||
url: https://cloudflare.frontendista.cz | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Deploy | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
workingDirectory: apps/cloudflare |
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
Submodule cloudflare
updated
from d7be6d to fce6dc
Oops, something went wrong.