Skip to content

Commit b905e60

Browse files
authored
Remove github-release workflow (#76)
It's currently broken, and needs to align with the set of instructions outlined in `RELEASING.md` which are currently manual. At some future date, those instructions should be turned into something that can successfully handle the release for us, including opening a PR to `bazelbuild/bazel-central-registry`.
1 parent 1dbfcf0 commit b905e60

File tree

2 files changed

+0
-71
lines changed

2 files changed

+0
-71
lines changed

.circleci/config.pkl

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ main {
2727
}
2828
}
2929

30-
release {
31-
jobs {
32-
new {
33-
["github-release"] {
34-
context = "pkl-github-release"
35-
}
36-
}
37-
}
38-
}
39-
4030
local bazelCacheKeys: Listing<String> = new {
4131
#"v1-bazel-cache-{{ arch }}-{{ checksum "MODULE.bazel" }}"#
4232
#"v1-bazel-cache-{{ arch }}-"#
@@ -92,37 +82,6 @@ jobs {
9282
}
9383
}
9484
}
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-
}
12685
}
12786

12887
circleCi {

.circleci/config.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,6 @@ jobs:
3939
path: /tmp/bazel-testlogs
4040
docker:
4141
- 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
6342
workflows:
6443
prb:
6544
jobs:
@@ -81,12 +60,3 @@ workflows:
8160
equal:
8261
- main
8362
- << 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+$/

0 commit comments

Comments
 (0)