Browse Source

Update compile-web-panel.yml

Bozhidar Slaveykov 1 year ago
parent
commit
e82fd9f342
1 changed files with 11 additions and 13 deletions
  1. 11 13
      .github/workflows/compile-web-panel.yml

+ 11 - 13
.github/workflows/compile-web-panel.yml

@@ -52,17 +52,15 @@ jobs:
           find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes"  \) -exec rm -rf -- {} +
           zip -r phyre-web-panel-build.zip `ls -A`
           mv phyre-web-panel-build.zip ../dist/phyre-web-panel.zip
-      - uses: stefanzweifel/git-auto-commit-action@v5
+
+      - name: Pushes to Phyre Panel Dist Repo
+        uses: cpina/github-action-push-to-another-repository@main
+        env:
+          SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
+          API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
         with:
-          commit_user_name: Cloud Vision Bot
-          commit_user_email: bobicloudvision@gmail.com
-          commit_author: Cloud Vision Bot <bobicloudvision@gmail.com>
-          commit_message: Upload compiled packages [BOT]
-          branch: web-panel-unstable-dist
-          file_pattern: 'phyre-web-panel.zip'
-          repository: ./dist
-          #skip_checkout: true
-          #push_options: '--force'
-          #skip_fetch: true
-          #create_branch: true
-          # status_options: '--untracked-files=no'
+          source-directory: './dist'
+          destination-github-username: 'Cloud Vision Bot'
+          destination-repository-name: 'pandoc-test-output'
+          user-email: bobicloudvision@gmail.com
+          target-branch: main