Skip to content

Commit 9a6378d

Browse files
authored
Merge pull request #78 from aicodingstack/develop
fix(ci): improve preview alias generation and cloudflare deployment
2 parents 2d29cb8 + f565976 commit 9a6378d

File tree

5 files changed

+3549
-3865
lines changed

5 files changed

+3549
-3865
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
CONTEXT_LABEL="PR #${{ github.event.pull_request.number }}"
7171
else
7272
RAW_BRANCH="${{ github.ref_name }}"
73-
SLUG="$(echo "$RAW_BRANCH" | tr '[:upper:]' '[:lower:]' | sed -E 's#[^a-z0-9]+#-#g; s#(^-+|-+$)##g' | cut -c1-40)"
73+
# First sanitize and truncate, then clean up any trailing hyphens from truncation
74+
SLUG="$(echo "$RAW_BRANCH" | tr '[:upper:]' '[:lower:]' | sed -E 's#[^a-z0-9]+#-#g' | cut -c1-40 | sed -E 's#-+$##g; s#(^-+)##g')"
7475
if [[ -z "$SLUG" ]]; then
7576
SLUG="branch"
7677
fi
@@ -116,7 +117,7 @@ jobs:
116117
with:
117118
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
118119
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
119-
command: versions upload --preview-alias ${{ steps.preview_meta.outputs.preview_alias }}
120+
command: versions upload --preview-alias ${{ steps.preview_meta.outputs.preview_alias }} --env=""
120121

121122
- name: Comment Preview URL
122123
if: github.event_name == 'pull_request'

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

cspell.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
33
"version": "0.2",
4-
"language": "en,de,es,fr,id,it,pt,ru,tr",
5-
"dictionaries": ["de", "es", "fr", "id", "it", "pt", "ru", "tr"],
4+
"language": "en,de,es,fr,id,pt,ru,tr",
5+
"dictionaries": ["de", "es", "fr", "id", "pt", "ru", "tr"],
66
"dictionaryDefinitions": [
77
{
88
"name": "de",
@@ -24,11 +24,6 @@
2424
"path": "node_modules/@cspell/dict-id-id/dict/id-id.trie",
2525
"description": "Indonesian dictionary"
2626
},
27-
{
28-
"name": "it",
29-
"path": "node_modules/@cspell/dict-it-it/dict/it-it.trie",
30-
"description": "Italian dictionary"
31-
},
3227
{
3328
"name": "pt",
3429
"path": "node_modules/@cspell/dict-pt-pt/dict/Portuguese-European.trie.gz",
@@ -49,6 +44,7 @@
4944
"ignorePaths": ["cloudflare-env.d.ts", "docs", ".claude"],
5045
"words": [
5146
"API'lerle",
47+
"aracidir",
5248
"Anthropics",
5349
"BYOK",
5450
"Benefíciate",

0 commit comments

Comments
 (0)