Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Release script and version #38

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.