build(deps): bump k8s.io/apimachinery from 0.25.3 to 0.28.4 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: helm-chart-package | |
on: | |
pull_request: | |
release: | |
types: [published] | |
permissions: | |
actions: none | |
checks: none | |
contents: write | |
deployments: none | |
id-token: none | |
issues: none | |
discussions: none | |
packages: none | |
pull-requests: none | |
repository-projects: none | |
security-events: none | |
statuses: none | |
jobs: | |
helm-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.8.1 | |
- run: mkdir -p build | |
- id: package | |
run: | | |
helm_output="$(helm package -d build deploy/helm)" | |
tgz_path="${helm_output##*saved it to: }" | |
echo "helm chart tgz path: '${tgz_path}'" | |
[ ! -f "${tgz_path}" ] && echo "failed to find helm chart from 'helm package' stdout" && exit 1 | |
echo "::set-output name=helm_tgz_path::${tgz_path}" | |
echo "::set-output name=helm_tgz_name::${tgz_path##*/}" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.package.outputs.helm_tgz_name}} | |
path: ${{ steps.package.outputs.helm_tgz_path}} | |
if-no-files-found: error | |
- uses: actions/upload-release-asset@v1 | |
if: github.event_name == 'release' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ${{ steps.package.outputs.helm_tgz_path}} | |
asset_name: ${{ steps.package.outputs.helm_tgz_name}} | |
asset_content_type: 'application/x-tar' |