From caade43b378d4db27072c3f1b35c3cb24cfa7f24 Mon Sep 17 00:00:00 2001 From: "cory.murphy" Date: Tue, 8 Oct 2024 06:56:27 -0400 Subject: [PATCH] implement release mechanism --- .github/workflows/release.yaml | 17 +++++++++++++++++ charts/argobot/Chart.yaml | 4 ++-- version | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f5ce421..b44df0a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,3 +80,20 @@ jobs: echo ${{ github.token }} | helm registry login --username ${{ github.actor }} --password-stdin ghcr.io/corymurphy helm push ".packages/${name}-${version}.tgz" oci://ghcr.io/corymurphy/helm-charts + github: + runs-on: ubuntu-latest + needs: [docker, helm] + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: get release version + if: github.ref_name == github.event.repository.default_branch + run: | + echo "version=$(awk '{print $1}' version)" >> $GITHUB_ENV + + - uses: softprops/action-gh-release@v2 + if: github.ref_name == github.event.repository.default_branch + with: + tag_name: ${{ env.version }} diff --git a/charts/argobot/Chart.yaml b/charts/argobot/Chart.yaml index 9f8c85b..b2af7ed 100644 --- a/charts/argobot/Chart.yaml +++ b/charts/argobot/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: argobot description: Helm chart for the corymurphy/argobot app type: application -version: 0.8.0 -appVersion: 0.8.0 +version: 0.8.1 +appVersion: 0.8.1 diff --git a/version b/version index a3df0a6..6f4eebd 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.8.0 +0.8.1