Skip to content

Commit 161b9e6

Browse files
committed
chore(cd): added deploy on cloudflare pages
1 parent f8b5cbf commit 161b9e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4158
-905
lines changed

.github/workflows/cd-app-prod.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CD - Production
2+
3+
on:
4+
push:
5+
branches:
6+
- next
7+
8+
jobs:
9+
publish-app-prod:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
deployments: write
14+
name: Publish app to production
15+
steps:
16+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
17+
- run: corepack enable
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
corepack: true
22+
cache: 'pnpm'
23+
24+
- name: Install dependencies
25+
run: pnpm i
26+
27+
- name: Build the app
28+
run: pnpm -F @it-tools/app build
29+
30+
- name: Publish to Cloudflare Pages
31+
uses: AdrianGonz97/refined-cf-pages-action@v1
32+
with:
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35+
githubToken: ${{ secrets.GITHUB_TOKEN }}
36+
projectName: it-tools
37+
workingDirectory: packages/app
38+
directory: dist
39+
deploymentName: Production App
40+
branch: next
41+
wranglerVersion: '3'
42+
43+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# IT-Tools

0 commit comments

Comments
 (0)