Skip to content

Commit a76f25a

Browse files
committed
chore: add GitHub workflows and configuration files
- Introduced release workflow for automated deployments - Added release-please manifest and configuration files - Set up Cloudflare integration for deployment process
1 parent c415dcb commit a76f25a

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Release"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
permissions:
9+
contents: "write"
10+
pull-requests: "write"
11+
12+
jobs:
13+
release-please:
14+
runs-on: "ubuntu-latest"
15+
16+
steps:
17+
- id: "release"
18+
name: "Release"
19+
uses: "googleapis/release-please-action@v4"
20+
21+
- name: "Checkout Codebase"
22+
if: "${{ steps.release.outputs.release_created }}"
23+
uses: "actions/checkout@v4"
24+
25+
- name: Deploy
26+
if: "${{ steps.release.outputs.release_created }}"
27+
uses: cloudflare/wrangler-action@v3
28+
with:
29+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
30+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
31+
command: pages deploy . --project-name=truffleshow
32+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}

release-please-config.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "simple",
6+
"include-v-in-tag": false,
7+
"bump-minor-pre-major": true,
8+
"bump-patch-for-minor-pre-major": true,
9+
"extra-files": [
10+
"index.html"
11+
]
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)