Skip to content

Commit 0dde06e

Browse files
committed
change release to v*
1 parent 0e27062 commit 0dde06e

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- master
66
tags:
7-
- "argsh-*"
7+
- "v*"
88
pull_request:
99

1010
defaults:
@@ -24,11 +24,9 @@ jobs:
2424
id: metadata
2525
with:
2626
images: ghcr.io/${{ github.repository }}
27-
tags: ${{ startsWith(github.ref, 'refs/tags/argsh-')
28-
&& format('type=match,pattern=argsh-(.*),group=1,value={0}', github.ref_name)
27+
tags: ${{ startsWith(github.ref, 'refs/tags/v')
28+
&& format('type=match,pattern=v(.*),group=1,value={0}', github.ref_name)
2929
|| 'type=sha,format=long' }}
30-
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v3
3230
- name: Set up Docker Buildx
3331
uses: docker/setup-buildx-action@v3
3432
- name: Login to GitHub Container Registry
@@ -41,7 +39,7 @@ jobs:
4139
uses: docker/build-push-action@v5
4240
with:
4341
context: .
44-
push: ${{ startsWith(github.ref, 'refs/tags/argsh-') }}
42+
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
4543
provenance: false
4644
platforms: linux/amd64
4745
tags: ${{ steps.metadata.outputs.tags }}
@@ -54,7 +52,7 @@ jobs:
5452
pull-requests: write
5553
environment: release
5654
needs: [docker]
57-
if: startsWith(github.ref, 'refs/tags/argsh-')
55+
if: startsWith(github.ref, 'refs/tags/v')
5856
steps:
5957
- name: Clone repository
6058
uses: actions/checkout@v4
@@ -65,5 +63,5 @@ jobs:
6563
run: |
6664
cp argsh.min.sh argsh
6765
sha256sum argsh > sha256sum.txt
68-
gh release create "${TAG_NAME}" --draft --title "argsh ${TAG_NAME#argsh-}" --generate-notes
66+
gh release create "${TAG_NAME}" --draft --title "argsh ${TAG_NAME#v}" --generate-notes
6967
gh release upload "${TAG_NAME}" --clobber argsh sha256sum.txt

0 commit comments

Comments
 (0)