Skip to content

Commit

Permalink
Fix the Release script and version (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda VK <[email protected]>
  • Loading branch information
aravindavk authored Dec 26, 2023
1 parent 27cbc85 commit 78641c0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/on-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,17 @@ env:

jobs:
publish-artifacts:
name: Publish binnacle file
name: Publish kadalu-binnacle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Single file
- name: Generate the Version
run: |
BINNACLE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') make build
- name: Upload binnacle to the release
uses: svenstaro/upload-release-action@v2
BINNACLE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') make gen-version
- name: Publish gem
uses: dawidd6/action-publish-gem@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/binnacle
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Upload install.sh to the release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: extra/install.sh
tag: ${{ github.ref }}
overwrite: true
file_glob: true
# Optional, will publish to RubyGems if specified
api_key: ${{secrets.RUBYGEMS_API_KEY}}
# Optional, will publish to GitHub Packages if specified
github_token: ${{secrets.GITHUB_TOKEN}}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ gem install kadalu-binnacle

## Usage

Check the version

```
binnacle --version
```

```
binnacle <task-file|task_files_list> [options]
```
Expand Down
2 changes: 1 addition & 1 deletion bin/binnacle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def parsed_args
end

opts.on('--version', 'Show Version information') do
puts "Binnacle #{Binnacle::VERSION}"
puts "Binnacle #{Kadalu::Binnacle::VERSION}"
exit
end
end
Expand Down
5 changes: 0 additions & 5 deletions lib/kadalu/binnacle/version.rb

This file was deleted.

0 comments on commit 78641c0

Please sign in to comment.