Skip to content

Commit

Permalink
create release for every pipeline run.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jul 1, 2021
1 parent db2b3d1 commit 5896220
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,27 @@ jobs:
chmod +x ./scripts/build-plugin.sh
./scripts/build-plugin.sh
- name: Release Plug-in
uses: sondreb/action-release@master
- name: create release ${{ env.GIT_TAG }}
if: github.ref == 'refs/heads/master'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: "/home/runner/work/jaeger-client-cpp/jaeger-client-cpp/build/utest/libjaegertracing_plugin.so"
tag_name: ${{ env.GIT_TAG }}
release_name: ${{ format('{0} - {1}', env.GIT_TAG, 'Plugin Release') }}
body: ${{ github.ref }}
draft: false
prerelease: false
name: ${{ format('{0} - {1}', env.GIT_TAG, 'Plugin Release') }}
tag: ${{ env.GIT_TAG }}

- name: upload release asset - libjaegertracing_plugin.so
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ '/home/runner/work/jaeger-client-cpp/jaeger-client-cpp/build/utest/libjaegertracing_plugin.so' }}
asset_name: ${{ 'libjaegertracing_plugin.so' }}
asset_content_type: application/zip

0 comments on commit 5896220

Please sign in to comment.