Skip to content

Commit 98f9623

Browse files
committed
feat: create tag after generating image
1 parent 73693c9 commit 98f9623

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/native.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
run: |
2525
./create-image.sh ${{ matrix.os }}
2626
27-
- name: Commit & Push changes
28-
uses: actions-js/push@master
29-
with:
30-
rebase: true
31-
tags: true
32-
message: 'chore: binary image for ${{matrix.os}}'
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
# - name: Commit & Push changes
28+
# uses: actions-js/push@master
29+
# with:
30+
# rebase: true
31+
# tags: true
32+
# message: 'chore: binary image for ${{matrix.os}}'
33+
# github_token: ${{ secrets.GITHUB_TOKEN }}

create-image.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ echo "Moving $WORK_FOLDER/$IMAGE_NAME to $RELEASES_FOLDER/$1/$IMAGE_NAME"
4040
mkdir -p "$RELEASES_FOLDER/$1"
4141
mv -f "$WORK_FOLDER/$IMAGE_NAME" "$RELEASES_FOLDER/$1/$IMAGE_NAME"
4242

43+
git pull --rebase
4344
git commit -am "chore: native image for $1, generated on $TODAY"
4445
echo "Creating tag '$1-$TODAY'"
4546
git tag -a "$1-$TODAY" -m "Native image for $1, generated on $TODAY"
4647
echo "Moving tag $1-latest"
47-
git tag -af "$1-latest" -m "Latest version of the native image for $1"
48+
git tag -af "$1-latest" -m "Latest version of the native image for $1"
49+
50+
git push --tags

0 commit comments

Comments
 (0)