Skip to content

Commit 4664cc1

Browse files
👷 ci(circleci): add release filters and update workflows (#1340)
* 👷 ci(circleci): add release filters and update workflows - add release filters to trigger jobs on version tags only - update workflows to include no_release job and adjust job dependencies - ensure compatibility with defined parameters and contexts * chore: update changelog for pr --------- Co-authored-by: Jerus Bot <[email protected]>
1 parent 09c6f8f commit 4664cc1

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.circleci/config.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
version: 2.1
22

3+
# Filter for release tags.
4+
release-filters: &release-filters
5+
branches:
6+
ignore: /.*/
7+
tags:
8+
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/
9+
310
parameters:
411
min-rust-version:
512
type: string
@@ -250,13 +257,24 @@ workflows:
250257
min_rust_version: << pipeline.parameters.min-rust-version >>
251258
pcu_verbosity: << pipeline.parameters.pcu_verbosity >>
252259
when_github_release: false
260+
- toolkit/no_release:
261+
min_rust_version: << pipeline.parameters.min-rust-version >>
262+
requires:
263+
- toolkit/save_next_version:
264+
- failed
265+
266+
github-release:
267+
jobs:
268+
- toolkit/save_next_version:
269+
filters: *release-filters
270+
min_rust_version: << pipeline.parameters.min-rust-version >>
253271
- toolkit/make_release:
254272
name: github release for hcaptcha
255273
context:
256274
- release
257275
- bot-check
258276
requires:
259-
- cargo release
277+
- toolkit/save_next_version
260278
ssh_fingerprint: << pipeline.parameters.fingerprint >>
261279
min_rust_version: << pipeline.parameters.min-rust-version >>
262280
when_cargo_release: false

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- 👷 ci(circleci)-add release filters and update workflows(pr [#1340])
13+
814
## [3.0.18] - 2025-04-25
915

1016
### Fixed
@@ -1195,7 +1201,9 @@ emitted if a tracing subscriber is not found.
11951201
[#1337]: https://github.com/jerus-org/hcaptcha-rs/pull/1337
11961202
[#1338]: https://github.com/jerus-org/hcaptcha-rs/pull/1338
11971203
[#1339]: https://github.com/jerus-org/hcaptcha-rs/pull/1339
1198-
[3.0.18]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.17...hcaptcha-v3.0.18
1204+
[#1340]: https://github.com/jerus-org/hcaptcha-rs/pull/1340
1205+
[Unreleased]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.18...HEAD
1206+
[3.0.18]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.17...v3.0.18
11991207
[3.0.17]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.16...v3.0.17
12001208
[3.0.16]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.15...v3.0.16
12011209
[3.0.15]: https://github.com/jerus-org/hcaptcha-rs/compare/v3.0.14...v3.0.15

0 commit comments

Comments
 (0)