Skip to content

Commit 78641c0

Browse files
authored
Fix the Release script and version (#38)
Signed-off-by: Aravinda VK <[email protected]>
1 parent 27cbc85 commit 78641c0

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

.github/workflows/on-release-tag.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,17 @@ env:
1111

1212
jobs:
1313
publish-artifacts:
14-
name: Publish binnacle file
14+
name: Publish kadalu-binnacle
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Generate Single file
18+
- name: Generate the Version
1919
run: |
20-
BINNACLE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') make build
21-
- name: Upload binnacle to the release
22-
uses: svenstaro/upload-release-action@v2
20+
BINNACLE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') make gen-version
21+
- name: Publish gem
22+
uses: dawidd6/action-publish-gem@v1
2323
with:
24-
repo_token: ${{ secrets.GITHUB_TOKEN }}
25-
file: bin/binnacle
26-
tag: ${{ github.ref }}
27-
overwrite: true
28-
file_glob: true
29-
- name: Upload install.sh to the release
30-
uses: svenstaro/upload-release-action@v2
31-
with:
32-
repo_token: ${{ secrets.GITHUB_TOKEN }}
33-
file: extra/install.sh
34-
tag: ${{ github.ref }}
35-
overwrite: true
36-
file_glob: true
24+
# Optional, will publish to RubyGems if specified
25+
api_key: ${{secrets.RUBYGEMS_API_KEY}}
26+
# Optional, will publish to GitHub Packages if specified
27+
github_token: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ gem install kadalu-binnacle
88

99
## Usage
1010

11+
Check the version
12+
13+
```
14+
binnacle --version
15+
```
16+
1117
```
1218
binnacle <task-file|task_files_list> [options]
1319
```

bin/binnacle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def parsed_args
4343
end
4444

4545
opts.on('--version', 'Show Version information') do
46-
puts "Binnacle #{Binnacle::VERSION}"
46+
puts "Binnacle #{Kadalu::Binnacle::VERSION}"
4747
exit
4848
end
4949
end

lib/kadalu/binnacle/version.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)