Skip to content

Commit 805278d

Browse files
committed
add GitHub Action package release strategy
1 parent 7a055fe commit 805278d

2 files changed

Lines changed: 30 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version (eg: v1, v2, v3)"
8+
type: string
9+
required: true
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 15
15+
steps:
16+
- uses: actions/checkout@v5
17+
with:
18+
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
19+
- name: Update versions in readme.md
20+
run: |
21+
sed -i "s|\(uses:.*@\)v[0-9]\+|\1${{ github.event.inputs.version }}|g" readme.md
22+
- uses: aboutbits/github-actions-base/git-setup@v2
23+
- uses: aboutbits/github-actions-base/git-commit-and-push-all@v2
24+
with:
25+
message: '${{ github.event.inputs.version }}'
26+
- uses: aboutbits/github-actions-base/git-create-or-update-tag@v2
27+
with:
28+
tag-name: '${{ github.event.inputs.version }}'

readme.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,9 @@ The following inputs can be used as `step.with` keys:
9090
| `timeout` | `5m` | The timeout for the Helm command |
9191
| `working-directory` | `.` | The working directory where the action commands will operate |
9292

93-
## Versioning
93+
## Build & Publish
9494

95-
In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release versions.
96-
97-
Creating a new minor release:
98-
99-
```bash
100-
git tag v4
101-
git push --tags
102-
```
103-
104-
Replacing an already existing minor release:
105-
106-
```bash
107-
git tag -d v4
108-
git push origin :refs/tags/v4
109-
git tag v4
110-
git push --tags
111-
```
95+
To build and publish the chart, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
11296

11397
## Information
11498

0 commit comments

Comments
 (0)