Skip to content

Commit

Permalink
Update release-helm-chart.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
martinibach authored Oct 4, 2023
1 parent b40774f commit 4677c72
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions .github/workflows/release-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,26 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v2 # Updated to v2

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Setup Helm
uses: azure/setup-helm@v1
with:
version: '3.7.0' # Replace with the version suitable for your charts
version: '3.7.0'

- name: Lint and Test Chart
run: |
cd path/to/chart
helm lint
# Execute tests if available
- name: Package Chart
run: |
cd path/to/chart
helm package .
- name: Get Chart Version
id: get_version
run: |
echo "::set-output name=version::$(awk '/version:/ {print $2}' path/to/chart/Chart.yaml)"
- name: Release Chart
uses: "J12934/helm-gh-pages-action@master"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
with:
key: ${{ secrets.GH_PAGES_DEPLOY }}
chartPath: "path/to/chart"
chartsDir: "charts"

- name: Create Release
id: create_release
uses: gh-actions/create-release@v1
version: v1.2.0 # specify the chart releaser version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.get_version.outputs.version }}
release_name: Release ${{ steps.get_version.outputs.version }}
body: |
Changes in this Release
- ...
draft: false
prerelease: false
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 4677c72

Please sign in to comment.