From 46b0ee634396fadb15146766ec2db28a36b9da1f Mon Sep 17 00:00:00 2001 From: Andrii Mishkovskyi <548482+mishok13@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:57:09 +0200 Subject: [PATCH] Changing push action a bit --- .github/workflows/push.yaml | 65 +++++-------------------------------- 1 file changed, 8 insertions(+), 57 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 87ec9f864..86d5071b4 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -2,67 +2,18 @@ name: Build and push Chart on: push: - tags: - - '*' + branches: + - 'stable' jobs: build-push: runs-on: ubuntu-latest steps: - - - uses: actions/checkout@v4 - with: - path: 'main' - - uses: actions/checkout@v4 - with: - path: 'gh-pages' - - - run: | - cd gh-pages - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - git checkout gh-pages - + - uses: azure/setup-helm@v4.2.0 - name: Build clickhouse chart - uses: WyriHaximus/github-action-helm3@v4 - with: - exec: helm package -u main/charts/clickhouse --destination gh-pages/charts - - - name: Build sentry chart - uses: WyriHaximus/github-action-helm3@v4 - with: - exec: helm package -u main/charts/sentry --destination gh-pages/charts - - - name: Build sentry-kubernetes chart - uses: WyriHaximus/github-action-helm3@v4 - with: - exec: helm package -u main/charts/sentry-kubernetes --destination gh-pages/charts - - - name: Build sentry-kubernetes chart - uses: WyriHaximus/github-action-helm3@v4 - with: - exec: helm repo index --url https://sentry-kubernetes.github.io/charts ./gh-pages/charts - - - name: Commit files - run: | - cd gh-pages - git add . - git commit -m "Add changes" -a - - - name: Push changes - uses: ad-m/github-push-action@9870d48124da805820c70ebc6ba563c715551019 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - directory: gh-pages - - - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./gh-pages/charts - with: - keepFiles: true + run: helm package charts/clickhouse + - name: Build clickhouse chart + run: helm package charts/sentry-kubernetes + - name: Build clickhouse chart + run: helm package -u charts/sentry