Skip to content

Commit 02c4374

Browse files
committed
✨ Update release workflow to include full fetch depth and push to main branch
1 parent 4d889c0 commit 02c4374

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
ref: ${{ github.ref_name }}
1619

1720
- name: Install uv
1821
uses: astral-sh/setup-uv@v3
@@ -31,13 +34,17 @@ jobs:
3134
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
3235
git add .
3336
git commit -m "🚀 Release $RELEASE_VERSION"
34-
git push
37+
git push origin
38+
git push origin main
3539
3640
publish-docs:
3741
runs-on: ubuntu-latest
3842
needs: [bump-version]
3943
steps:
4044
- uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0
47+
ref: ${{ github.ref_name }}
4148

4249
- name: Install uv
4350
uses: astral-sh/setup-uv@v3
@@ -64,6 +71,9 @@ jobs:
6471
steps:
6572
- name: Checkout
6673
uses: actions/checkout@v4
74+
with:
75+
fetch-depth: 0
76+
ref: ${{ github.ref_name }}
6777

6878
- name: Install uv
6979
uses: astral-sh/setup-uv@v3

0 commit comments

Comments
 (0)