Skip to content

Commit 6ec3e15

Browse files
authored
Merge pull request #16 from wherka-ama/main
fix(ci): improve git tags handling and release workflow
2 parents 8a53b8a + aee9f4d commit 6ec3e15

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18+
fetch-tags: true
1819
fetch-depth: 0
1920

2021
- name: Install uv

.github/workflows/release-oci-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
name: Checkout
4343
uses: actions/checkout@v4
4444
with:
45+
fetch-tags: true
4546
fetch-depth: 0
4647
-
4748
name: Generate next version
@@ -158,8 +159,8 @@ jobs:
158159
159160
docker manifest create \
160161
${{ needs.generate-release-version.outputs.image_tag_latest }} \
161-
--amend ${{ needs.generate-release-version.outputs.image_tag_latest }}-X64 \
162-
--amend ${{ needs.generate-release-version.outputs.image_tag_latest }}-ARM64
162+
--amend ${{ needs.generate-release-version.outputs.image_tag }}-X64 \
163+
--amend ${{ needs.generate-release-version.outputs.image_tag }}-ARM64
163164
docker manifest push ${{ needs.generate-release-version.outputs.image_tag_latest }}
164165
docker manifest inspect ${{ needs.generate-release-version.outputs.image_tag_latest }}
165166

.github/workflows/release-pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- uses: actions/checkout@v4
2626
with:
2727
persist-credentials: false
28+
fetch-tags: true
29+
fetch-depth: 0
2830
- name: Set up Python
2931
uses: actions/setup-python@v5
3032
with:
@@ -108,6 +110,7 @@ jobs:
108110
gh release create "$GITHUB_REF_NAME" \
109111
--title "Release $GITHUB_REF_NAME" \
110112
--generate-notes \
113+
--latest \
111114
--repo "$GITHUB_REPOSITORY"
112115
- name: Upload artifact signatures to GitHub Release
113116
env:

0 commit comments

Comments
 (0)