File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
workflow "Release a new version" {
2
- on = " push "
2
+ on = " release "
3
3
resolves = [" publish-on-orbs-registry" ]
4
4
}
5
5
Original file line number Diff line number Diff line change @@ -37,12 +37,15 @@ workflows:
37
37
38
38
## Publsh on Orbs Registry
39
39
40
- For now, to publish a new version we need to manually change the version in
41
- [ entrypoint.sh] ( https://github.com/nebulab/circleci-orbs-feature-branch-preview/blob/62d846d5fe7d2c56ca8fbd51cb99a2708bc2460b/publish-on-orbs-registry/entrypoint.sh#L7 ) .
40
+ To publish a new version it's just needed to [ create a new release on this
41
+ repository] ( https://github.com/nebulab/circleci-orbs-feature-branch-preview/releases ) .
42
+ A GitHub action will take care of everything else.
42
43
43
- ** TODO:**
44
- - Publish only when committing to master
45
- - Find a better way to handle the orb version
44
+ ** NOTE:** The release tag name should match what CircleCI Orbs Registry expects,
45
+ so:
46
+
47
+ - ` 1.5.0 ` :thumbsup :
48
+ - ` v1.2 ` :thumbsdown :
46
49
47
50
## Contributing
48
51
Original file line number Diff line number Diff line change 4
4
circleci setup --no-prompt --token $CIRCLECI_TOKEN
5
5
6
6
# Publish the orb on CircleCI Orbs Registry
7
- circleci orb publish source.yml nebulab/feature-branch-preview@1.5.0
7
+ circleci orb publish source.yml nebulab/feature-branch-preview@$GITHUB_REF
You can’t perform that action at this time.
0 commit comments