From b7278b60abebffb1bff1cd7707c20f964454d44b Mon Sep 17 00:00:00 2001 From: Thomas Miceli Date: Sat, 31 Jan 2026 20:51:40 +0700 Subject: [PATCH] Update CI --- .github/workflows/docs.yml | 1 + .github/workflows/helm.yml | 30 +++++++++++++----------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02a2782..958fac5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,4 +39,5 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add . git commit -m "Deploy docs from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit" + git pull --rebase git push diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 7da4361..28de770 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -34,20 +34,16 @@ jobs: helm repo index --url https://helm.opengist.io --merge index.yaml . fi - - name: Deploy to server - uses: appleboy/scp-action@master - with: - host: ${{ secrets.SERVER_HOST }} - username: ${{ secrets.SERVER_USERNAME }} - key: ${{ secrets.SERVER_SSH_KEY }} - source: "./helm/*.tgz,./helm/index.yaml" - target: ${{ secrets.HELM_SERVER_PATH }} - - - name: Update remote helm repository - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.SERVER_HOST }} - username: ${{ secrets.SERVER_USERNAME }} - key: ${{ secrets.SERVER_SSH_KEY }} - script: | - ${{ secrets.UPDATE_HELM_REPO }} \ No newline at end of file + - name: Push to docs repository + run: | + git clone https://${{ secrets.DOCS_REPO_TOKEN }}@github.com/${{ secrets.DOCS_REPO }}.git target-repo + mkdir -p target-repo/helm + cp helm/*.tgz target-repo/helm/ + cp helm/index.yaml target-repo/helm/ + cd target-repo + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Deploy helm chart from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit" + git pull --rebase + git push \ No newline at end of file