File tree Expand file tree Collapse file tree 2 files changed +0
-71
lines changed Expand file tree Collapse file tree 2 files changed +0
-71
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,6 @@ main {
27
27
}
28
28
}
29
29
30
- release {
31
- jobs {
32
- new {
33
- ["github-release" ] {
34
- context = "pkl-github-release"
35
- }
36
- }
37
- }
38
- }
39
-
40
30
local bazelCacheKeys : Listing<String> = new {
41
31
#"v1-bazel-cache-{{ arch }}-{{ checksum "MODULE.bazel" }}"#
42
32
#"v1-bazel-cache-{{ arch }}-"#
@@ -92,37 +82,6 @@ jobs {
92
82
}
93
83
}
94
84
}
95
- ["github-release" ] {
96
- docker {
97
- new { image = "maniator/gh:v2.40.1" }
98
- }
99
- steps {
100
- local archiveName = "rules_pkl-$VERSION.tar.gz"
101
- new AttachWorkspaceStep { at = "." }
102
- new RunStep {
103
- name = "Setup environment"
104
- // There SHOULD be a better way to extract the bazel module version from the bazel metadata.
105
- command = """
106
- echo "export VERSION=$(bazel mod path rules_pkl | awk -F'@' '/rules_pkl/{ print substr($2, 1, length($2)-1) }')" >> $BASH_ENV
107
- """
108
- }
109
- new RunStep {
110
- name = "Build archive"
111
- command = "tar -cavf \(archiveName) -X .tar-exclude-from-file.conf *"
112
- }
113
- new RunStep {
114
- name = "Publish release on GitHub"
115
- command = #"""
116
- gh release create "${CIRCLE_TAG}" \
117
- --title "${CIRCLE_TAG}" \
118
- --target "${CIRCLE_SHA1}" \
119
- --verify-tag \
120
- --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
121
- \#(archiveName)
122
- """#
123
- }
124
- }
125
- }
126
85
}
127
86
128
87
circleCi {
Original file line number Diff line number Diff line change 39
39
path : /tmp/bazel-testlogs
40
40
docker :
41
41
- image : gcr.io/bazel-public/bazel:7.6.1
42
- github-release :
43
- steps :
44
- - attach_workspace :
45
- at : ' .'
46
- - run :
47
- command : echo "export VERSION=$(bazel mod path rules_pkl | awk -F'@' '/rules_pkl/{ print substr($2, 1, length($2)-1) }')" >> $BASH_ENV
48
- name : Setup environment
49
- - run :
50
- command : tar -cavf rules_pkl-$VERSION.tar.gz -X .tar-exclude-from-file.conf *
51
- name : Build archive
52
- - run :
53
- command : |-
54
- gh release create "${CIRCLE_TAG}" \
55
- --title "${CIRCLE_TAG}" \
56
- --target "${CIRCLE_SHA1}" \
57
- --verify-tag \
58
- --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
59
- rules_pkl-$VERSION.tar.gz
60
- name : Publish release on GitHub
61
- docker :
62
- - image : maniator/gh:v2.40.1
63
42
workflows :
64
43
prb :
65
44
jobs :
@@ -81,12 +60,3 @@ workflows:
81
60
equal :
82
61
- main
83
62
- << pipeline.git.branch >>
84
- release :
85
- jobs :
86
- - github-release :
87
- context : pkl-github-release
88
- filters :
89
- branches :
90
- ignore : /.*/
91
- tags :
92
- only : /^v?\d+\.\d+\.\d+$/
You can’t perform that action at this time.
0 commit comments