From 493328c7be94a396ea3917479e70bd92c73cd9bd Mon Sep 17 00:00:00 2001 From: sjlleo Date: Sat, 2 Jul 2022 02:51:35 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E5=A4=8D=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bac71a8..45bc855 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,39 +46,4 @@ jobs: dist/nexttrace_freebsd_amd64 dist/nexttrace_freebsd_arm64 env: - GITHUB_TOKEN: ${{ secrets.GT_Token }} - publish-new-formula: - # The type of runner that the job will run on - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs a single command using the runners shell - - name: config git - run: | - git config --global user.email "${{ secrets.git_mail }}" - git config --global user.name "${{ secrets.git_name }}" - - name: Clone repo - run: | - git clone https://github.com/xgadget-lab/homebrew-nexttrace.git - - name: Exec scipt - run: | - cd homebrew-nexttrace - bash genFormula.sh - # - name: setup SSH keys and known_hosts - # run: | - # mkdir -p ~/.ssh - # ssh-keyscan github.com >> ~/.ssh/known_hosts - # ssh-agent -a $SSH_AUTH_SOCK > /dev/null - # ssh-add - <<< "${{ secrets.ID_RSA }}" - # env: - # SSH_AUTH_SOCK: /tmp/ssh_agent.sock - - name: Git Push - run: | - cd homebrew-nexttrace - git commit -am 'Publish a new version with Formula' - git remote set-url origin https://${{ secrets.gt_token }}@github.com/xgadget-lab/homebrew-nexttrace.git - git push || 1 - # env: - # SSH_AUTH_SOCK: /tmp/ssh_agent.sock - - run: echo "🍏 This job's status is ${{ job.status }}." + GITHUB_TOKEN: ${{ secrets.GT_Token }} \ No newline at end of file