Skip to content

Commit

Permalink
Add Helm chart as an artifact to releases
Browse files Browse the repository at this point in the history
Fixes #17.
  • Loading branch information
kylecarbs committed Jan 3, 2024
1 parent b661fb8 commit 05de39d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
with:
go-version: "~1.20"

- name: Get Version
run: echo "::set-output name=version::$(./scripts/version.sh)"
id: version

- name: Build
run: ./scripts/build.sh

Expand Down Expand Up @@ -78,3 +82,22 @@ jobs:
helm repo index build/helm --url https://helm.coder.com/logstream-kube --merge build/helm/index.yaml
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/${version}.tgz gs://helm.coder.com/logstream-kube
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/logstream-kube
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}

- name: Upload Helm Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/${{ steps.version.outputs.version }}.tgz
asset_name: helm.tar.gz
asset_content_type: application/gzip

0 comments on commit 05de39d

Please sign in to comment.