Skip to content

Commit

Permalink
fix: try to use semrel also for CR
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiStefanie committed Aug 5, 2024
1 parent 6f3128c commit 37abb78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,29 @@ on:
- main

jobs:
semrel:
name: Chart Versioning
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/[email protected]
- name: Generate the next version
uses: cycjimmy/semantic-release-action@v4
id: release
with:
dry_run: true
extra_plugins: |
@semantic-release/git
semantic-release-helm
semantic-release-helm3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
runs-on: ubuntu-latest
needs: semrel
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/[email protected]
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
}
],
[
"semantic-release-helm",
"semantic-release-helm3",
{
"chartPath": "./charts/kubernetes-agent"
"chartPath": "./charts/kubernetes-agent",
"onlyUpdateVersion": true,
"crPublish": true
}
],
[
Expand Down

0 comments on commit 37abb78

Please sign in to comment.