@@ -31,27 +31,13 @@ jobs:
31
31
if : ${{ steps.changelog.outputs.skipped == 'false' }}
32
32
with :
33
33
python-version : " 3.13"
34
- - uses : fregante/setup-git-token@614530a4b03f263cd0cc72b3217b7bac2806c342 # v1
35
- if : ${{ steps.changelog.outputs.skipped == 'false' }}
36
- with :
37
- token : ${{ secrets.GH_RELEASE_PAT }}
38
- - name : Update image tags in repository files
34
+ - name : Prepare artifact
39
35
if : ${{ steps.changelog.outputs.skipped == 'false' }}
40
36
run : |
41
- git checkout --detach
42
37
python3 .github/bin/update_image_tags.py "${{ steps.changelog.outputs.tag }}" --verbose
43
- - name : Create commit and push tag only
44
- if : ${{ steps.changelog.outputs.skipped == 'false' }}
45
- run : |
46
- CHANGES=$(git status --porcelain)
47
- if ! [ -n "$CHANGES" ]; then
48
- echo "No changes to commit"
49
- exit 1
50
- fi
51
- git add -A
52
- git commit -m "chore(release): update image references to ${{ steps.changelog.outputs.tag }}"
53
- git tag -a "${{ steps.changelog.outputs.tag }}" -m "Release ${{ steps.changelog.outputs.version }}"
54
- git push -vv origin "${{ steps.changelog.outputs.tag }}"
38
+ echo "${{ steps.changelog.outputs.tag }}" > VERSION
39
+ tar --exclude='.github' --exclude='.cursor' --exclude='.git' --exclude='renovate.json' \
40
+ -czvf /tmp/release-${{ steps.changelog.outputs.tag }}.tar.gz .
55
41
- name : Create GitHub Release
56
42
uses : ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1
57
43
if : ${{ steps.changelog.outputs.skipped == 'false' }}
60
46
name : Release ${{ steps.changelog.outputs.version }}
61
47
body : ${{ steps.changelog.outputs.clean_changelog }}
62
48
token : ${{ secrets.GH_RELEASE_PAT }}
49
+ artifacts : " /tmp/release-${{ steps.changelog.outputs.tag }}.tar.gz"
0 commit comments