@marcel91200 / caddy Mirror · read-only / commits / 21c1da10
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

ci: Disable publishing .deb on beta tags (#3473)

Francis Lavoie committed Jun 5, 2020 at 12:23 UTC 21c1da101cf9a8dc586fc8cf20e1769e79e49eea
1 file changed +14
.github/workflows/release.yml
+14
@@ -41,6 +41,18 @@ jobs:
41 echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
42 echo "::set-output name=go_cache::$(go env GOCACHE)"
43
44 + # Parse semver
45 + TAG=${GITHUB_REF/refs\/tags\//}
46 + SEMVER_RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z\.-]*\)'
47 + TAG_MAJOR=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\1#"`
48 + TAG_MINOR=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\2#"`
49 + TAG_PATCH=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\3#"`
50 + TAG_SPECIAL=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\4#"`
51 + echo "::set-output name=tag_major::${TAG_MAJOR}"
52 + echo "::set-output name=tag_minor::${TAG_MINOR}"
53 + echo "::set-output name=tag_patch::${TAG_PATCH}"
54 + echo "::set-output name=tag_special::${TAG_SPECIAL}"
55 +
56 - name: Cache the build cache
57 uses: actions/cache@v1
58 with:
@@ -59,7 +71,9 @@ jobs:
71 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72 TAG: ${{ steps.vars.outputs.version_tag }}
73
74 + # Only publish on non-special tags (e.g. non-beta)
75 - name: Publish .deb to Gemfury
76 + if: ${{ steps.vars.outputs.tag_special }} == ""
77 env:
78 GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}
79 run: |