44 branches :
55 - master
66 tags :
7- - " argsh- *"
7+ - " v *"
88 pull_request :
99
1010defaults :
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
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 }}
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
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