Skip to content

Commit

Permalink
Fix artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
AsafMah committed Dec 27, 2020
1 parent 2c6c88b commit c8cc338
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- run: bundle install
- name: Publish gem
uses: dawidd6/action-publish-gem@v1
with:
api_key: ${{secrets.RUBYGEMS_KEY}}
github_token: ${{secrets.GITHUB_TOKEN}}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -33,13 +28,22 @@ jobs:
release_name: Version ${{ github.ref }}
draft: false
prerelease: false
- name: Set artifact name
id: set_artifact_name
run: |
echo "::set-output name=artifact_name::`echo *.gem`"
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "*.gem"
asset_name: kusto-logstash.gem
asset_content_type: application/zip
asset_path: ./${{ steps.set_artifact_name.outputs.artifact_name }}
asset_name: ${{ steps.set_artifact_name.outputs.artifact_name }}
asset_content_type: application/zip
- name: Publish gem
uses: dawidd6/action-publish-gem@v1
with:
api_key: ${{secrets.RUBYGEMS_KEY}}
github_token: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion logstash-output-kusto.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'logstash-output-kusto' #WATCH OUT: we hardcoded usage of this name in one of the classes.
s.version = '1.0.1'
s.version = '1.0.2'
s.licenses = ['Apache-2.0']
s.summary = 'Writes events to Azure Data Explorer (Kusto)'
s.description = 'This is a logstash output plugin used to write events to an Azure Data Explorer (a.k.a Kusto)'
Expand Down

0 comments on commit c8cc338

Please sign in to comment.