@@ -19,18 +19,16 @@ jobs:
19
19
go-version-file : " go.mod"
20
20
21
21
- name : Get the image tag
22
- if : startsWith(github.ref, 'refs/tags')
23
22
run : |
24
23
# Source: https://github.community/t/how-to-get-just-the-tag-name/16241/32
25
24
if [[ $GITHUB_REF == refs/tags/* ]]; then
26
25
echo IMAGE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
26
+ else
27
+ echo IMAGE_TAG="snapshot" >> $GITHUB_ENV
27
28
fi
28
-
29
- # TODO dtfranz
30
- # This action uses node12 and the source repo is archived;
31
- # we should remove it or find a suitable replacement before it becomes a blocker.
29
+
32
30
- name : Create a draft release
33
- uses : actions/create- release@v1
31
+ uses : softprops/action-gh- release@v2
34
32
id : release
35
33
if : startsWith(github.ref, 'refs/tags')
36
34
env :
42
40
43
41
- name : Set up QEMU
44
42
uses : docker/setup-qemu-action@v3
45
- if : startsWith(github.ref, 'refs/tags')
46
43
47
44
- name : Docker Login
48
45
uses : docker/login-action@v3
@@ -54,17 +51,15 @@ jobs:
54
51
55
52
- name : Run GoReleaser
56
53
uses : goreleaser/goreleaser-action@v6
57
- if : startsWith(github.ref, 'refs/tags')
58
54
with :
59
55
version : 0.177.0
60
- args : release --rm-dist
56
+ args : release --rm-dist ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}
61
57
env :
62
58
GITHUB_TOKEN : ${{ github.token }}
63
59
IMAGE_REPO : quay.io/operator-framework/olm
64
60
PKG : github.com/operator-framework/operator-lifecycle-manager
65
61
66
62
- name : Generate quickstart release manifests
67
- if : startsWith(github.ref, 'refs/tags')
68
63
run : make release ver=${{ env.IMAGE_TAG }} IMAGE_REPO=quay.io/operator-framework/olm
69
64
70
65
- name : Update release artifacts with rendered Kubernetes release manifests
0 commit comments