Skip to content

Commit

Permalink
ci: replace github release orb with github cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Reymann authored and Timo Reymann committed Jan 23, 2023
1 parent b055958 commit 8b4e8a1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ job_defaults: &job_defaults


orbs:
github-release: timo-reymann/github-release@1.1.0

github-cli: circleci/github-cli@2.2.0

executors:
go:
Expand Down Expand Up @@ -72,6 +71,19 @@ jobs:
git add .
git commit -m "chore: Update formula for version $CIRCLE_TAG" || true
git push
create_github_release:
executor: go
steps:
- checkout
- attach_workspace:
at: .
name: Retrieve persisted binaries
- github-cli/install:
version: "2.21.2"
- run:
name: Publish release
command: |
gh release create ${CIRCLE_TAG} --generate-notes dist/*
workflows:
version: 2
Expand All @@ -85,9 +97,7 @@ workflows:
requires:
- test

- github-release/create-release-with-files:
attach-workspace: true
file_pattern: 'dist/*'
- create_github_release:
filters:
branches:
ignore: /.*/
Expand All @@ -103,4 +113,4 @@ workflows:
tags:
only: /.*/
requires:
- github-release/create-release-with-files
- create_github_release

0 comments on commit 8b4e8a1

Please sign in to comment.