File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,27 @@ jobs:
23
23
mv binaries/shiori_linux_amd64_v1 binaries/shiori_linux_amd64
24
24
gzip -d -S binaries/.gz__ -r .
25
25
chmod 755 binaries/shiori_linux_*/shiori
26
+
26
27
- name : Prepare master push tags
27
28
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
28
29
run : |
29
30
REPO=ghcr.io/${{ github.repository }}
30
31
TAG=$(git describe --tags)
31
- if [ -z "$(git tag --points-at HEAD)" ] || [ "$TAG" == *"rc"* ]
32
+ if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ] ]
32
33
then
33
34
TAG2="dev"
34
35
else
35
36
TAG2="latest"
36
37
fi
37
38
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
38
39
40
+ - name : Prepare version push tags
41
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
42
+ run : |
43
+ REPO=ghcr.io/${{ github.repository }}
44
+ TAG=$(git describe --tags)
45
+ echo "tag_flags=--tag $REPO:$TAG --tag $REPO:dev" >> $GITHUB_ENV
46
+
39
47
- name : Prepare pull request tags
40
48
if : github.event_name == 'pull_request'
41
49
run : |
You can’t perform that action at this time.
0 commit comments