Skip to content

Commit 627b42b

Browse files
claudensheaps
authored andcommitted
fix: repair deployment workflows for tag-based release flow
- auto-release.yml / release.yml: add git user config and remote URL with app token so release-it can push commits and tags - release-web.yml: add git credentials for gh-pages push, remove duplicate tag trigger (release: published is sufficient), drop redundant oven-sh/setup-bun (mise handles it) and validate step (already ran in auto-release) - release-desktop.yml: remove duplicate tag trigger, fix release job to upload assets to existing release instead of creating a new one, drop redundant oven-sh/setup-bun - release-mobile.yml: remove duplicate tag trigger and redundant oven-sh/setup-bun https://claude.ai/code/session_01AecUcpXWut7bntMGGprAMH
1 parent fdf388f commit 627b42b

File tree

5 files changed

+22
-41
lines changed

5 files changed

+22
-41
lines changed

.github/workflows/auto-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ jobs:
4242

4343
- name: Configure git
4444
run: |
45+
git config user.name "github-actions[bot]"
46+
git config user.email "github-actions[bot]@users.noreply.github.com"
47+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
4548
# Set up branch tracking so release-it doesn't fail on upstream check
4649
git branch --set-upstream-to=origin/main main 2>/dev/null || true
50+
env:
51+
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
4752

4853
- name: Debug release-it state
4954
run: |

.github/workflows/release-desktop.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Release Desktop
33
on:
44
release:
55
types: [published]
6-
push:
7-
tags:
8-
- 'v*'
96
workflow_dispatch:
107

118
permissions:
@@ -19,10 +16,6 @@ jobs:
1916

2017
- uses: jdx/mise-action@v2
2118

22-
- uses: oven-sh/setup-bun@v2
23-
with:
24-
bun-version: latest
25-
2619
- name: Install dependencies
2720
run: bun install --frozen-lockfile
2821

@@ -43,10 +36,6 @@ jobs:
4336

4437
- uses: jdx/mise-action@v2
4538

46-
- uses: oven-sh/setup-bun@v2
47-
with:
48-
bun-version: latest
49-
5039
- name: Install dependencies
5140
run: bun install --frozen-lockfile
5241

@@ -67,10 +56,6 @@ jobs:
6756

6857
- uses: jdx/mise-action@v2
6958

70-
- uses: oven-sh/setup-bun@v2
71-
with:
72-
bun-version: latest
73-
7459
- name: Install dependencies
7560
run: bun install --frozen-lockfile
7661

@@ -84,20 +69,20 @@ jobs:
8469
path: packages/desktop/dist/*.AppImage
8570
if-no-files-found: warn
8671

87-
release:
72+
upload-release-assets:
8873
needs: [build-macos, build-windows, build-linux]
8974
runs-on: ubuntu-latest
90-
if: startsWith(github.ref, 'refs/tags/')
75+
if: github.event_name == 'release'
9176
steps:
9277
- name: Download all artifacts
9378
uses: actions/download-artifact@v4
9479
with:
9580
merge-multiple: true
9681
path: dist
9782

98-
- name: Create GitHub Release
83+
- name: Upload assets to release
9984
uses: softprops/action-gh-release@v2
10085
with:
10186
files: dist/*
102-
generate_release_notes: true
103-
draft: true
87+
tag_name: ${{ github.event.release.tag_name }}
88+
fail_on_unmatched_files: false

.github/workflows/release-mobile.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Release Mobile
33
on:
44
release:
55
types: [published]
6-
push:
7-
tags:
8-
- 'v*'
96
workflow_dispatch:
107

118
permissions:
@@ -19,10 +16,6 @@ jobs:
1916

2017
- uses: jdx/mise-action@v2
2118

22-
- uses: oven-sh/setup-bun@v2
23-
with:
24-
bun-version: latest
25-
2619
- name: Install dependencies
2720
run: bun install --frozen-lockfile
2821

@@ -49,10 +42,6 @@ jobs:
4942

5043
- uses: jdx/mise-action@v2
5144

52-
- uses: oven-sh/setup-bun@v2
53-
with:
54-
bun-version: latest
55-
5645
- uses: actions/setup-java@v4
5746
with:
5847
distribution: temurin

.github/workflows/release-web.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Release Web
33
on:
44
release:
55
types: [published]
6-
push:
7-
tags:
8-
- 'v*'
96
workflow_dispatch:
107

118
permissions:
@@ -33,16 +30,9 @@ jobs:
3330

3431
- uses: jdx/mise-action@v2
3532

36-
- uses: oven-sh/setup-bun@v2
37-
with:
38-
bun-version: latest
39-
4033
- name: Install dependencies
4134
run: bun install --frozen-lockfile
4235

43-
- name: Run quality gate
44-
run: bun run validate
45-
4636
- name: Build web
4737
run: bun run build
4838
env:
@@ -52,6 +42,11 @@ jobs:
5242

5343
- name: Deploy to GitHub Pages (app/ subdirectory)
5444
run: |
45+
# Configure git credentials
46+
git config user.name "github-actions[bot]"
47+
git config user.email "github-actions[bot]@users.noreply.github.com"
48+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
49+
5550
# Fetch gh-pages branch or create it
5651
git fetch origin gh-pages || true
5752
git checkout gh-pages || git checkout --orphan gh-pages
@@ -69,3 +64,5 @@ jobs:
6964
git add app/ 404.html index.html
7065
git commit -m "Deploy production app ($(git describe --tags --always))" --allow-empty
7166
git push origin gh-pages
67+
env:
68+
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ jobs:
5454

5555
- name: Configure git
5656
run: |
57+
git config user.name "github-actions[bot]"
58+
git config user.email "github-actions[bot]@users.noreply.github.com"
59+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
5760
git branch --set-upstream-to=origin/main main 2>/dev/null || true
61+
env:
62+
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
5863

5964
- name: Debug release-it state
6065
run: |

0 commit comments

Comments
 (0)