Skip to content

Commit

Permalink
ci(workflows): Add Tar Zipped Asset for Helm Chart Sample Consumption (
Browse files Browse the repository at this point in the history
…#119)

* ci(workflows): Add helm as tar zipped file via release action (#1)

Signed-off-by: Eshe N Pickett <[email protected]>
  • Loading branch information
eshenayo authored Jun 16, 2022
1 parent e6b80f3 commit b904056
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/github-action-ghr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
tags:
- '*'
name: Build and release on push
jobs:
release:
name: create release artifacts
runs-on: ubuntu-latest
steps:
- name: clone edgex examples repo
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Print github workspace
run: echo $GITHUB_WORKSPACE && pwd && echo ${{ github.workspace }}

- name: tar zip edgex jakarta helm directory
shell: bash
run: |
(cd $GITHUB_WORKSPACE/deployment && tar -czvf edgex-examples-helm.tar.gz helm)
- name: upload helm tarball release artifact
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace}}/deployment/edgex-examples-helm.tar.gz
asset_name: edgex-examples-helm.tar.gz
tag: ${{ github.ref }}
overwrite: true
body: "EdgeX examples with helm deployment tarball asset"

0 comments on commit b904056

Please sign in to comment.