Skip to content

remove dir on archive #4

remove dir on archive

remove dir on archive #4

name: Kong Agents Helm
on:
push:
tags:
- v*.*.*
jobs:
helm-archive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v(.*)"
tagRegexGroup: 1
- name: Update chart versions
run: |
sed helm/kong-agents/Chart.yaml -i -e "s/^appVersion.*/appVersion:\ \"v${GIT_TAG_NAME}\"/"
sed helm/kong-agents/Chart.yaml -i -e "s/^version.*/version:\ ${GIT_TAG_NAME}/"
- name: Archive chart
run: |
tar czf kong-agents.tgz -C helm/kong-agents .
- name: Upload chart to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: kong-agents.tgz
tag: ${{ github.ref_name }}