From fa69867fc20bf8b02ebc64e36b080862d4e4317b Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Thu, 24 Oct 2024 10:09:18 +0800 Subject: [PATCH] build: disable minebbs auto publishing --- .github/workflows/gradle.yml | 66 ++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2cde88cfb..d2e2a881b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -61,7 +61,7 @@ jobs: directory: .jacoco/test/ token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload Allay-Server + - name: Upload Artifact uses: actions/upload-artifact@v4 if: success() with: @@ -75,38 +75,38 @@ jobs: url: 'https://jitpack.io/#AllayMC/Allay/master-SNAPSHOT' method: 'GET' - - name: Get Short SHA - id: vars - if: success() - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Format ChangeLog - id: get-changelog - if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') - run: | - CHANGELOG=$(echo "${{ github.event.commits[0].message }}" | sed ':a;N;$!ba;s/\n/\\n/g') - echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT - - - name: Get Time - id: time - uses: nanzm/get-time-action@v2.0 - if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') - with: - timeZone: 8 - format: 'YYYY/MM/DD-HH:mm:ss' - - - name: Publish to MineBBS - uses: fjogeleit/http-request-action@v1 - if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') - with: - url: 'https://api.minebbs.com/api/openapi/v1/resources/8815/update' - method: 'POST' - customHeaders: '{"Authorization": "Bearer ${{ secrets.MINEBBS_API_KEY }}"}' - contentType: 'application/json' - data: '{"title": "${{ github.ref_name }}-${{ steps.vars.outputs.sha_short }}", "description": "${{ steps.get-changelog.outputs.changelog }}", "new_version": "${{ steps.time.outputs.time }}", "file_url": "https://github.com/AllayMC/Allay"}' - escapeData: 'true' - preventFailureOnNoResponse: 'true' - ignoreStatusCodes: '400,404,401,403,429,500,502,503,504' +# - name: Get Short SHA +# id: vars +# if: success() +# run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT +# +# - name: Format ChangeLog +# id: get-changelog +# if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') +# run: | +# CHANGELOG=$(echo "${{ github.event.commits[0].message }}" | sed ':a;N;$!ba;s/\n/\\n/g') +# echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT +# +# - name: Get Time +# id: time +# uses: nanzm/get-time-action@v2.0 +# if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') +# with: +# timeZone: 8 +# format: 'YYYY/MM/DD-HH:mm:ss' +# +# - name: Publish to MineBBS +# uses: fjogeleit/http-request-action@v1 +# if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master') +# with: +# url: 'https://api.minebbs.com/api/openapi/v1/resources/8815/update' +# method: 'POST' +# customHeaders: '{"Authorization": "Bearer ${{ secrets.MINEBBS_API_KEY }}"}' +# contentType: 'application/json' +# data: '{"title": "${{ github.ref_name }}-${{ steps.vars.outputs.sha_short }}", "description": "${{ steps.get-changelog.outputs.changelog }}", "new_version": "${{ steps.time.outputs.time }}", "file_url": "https://github.com/AllayMC/Allay"}' +# escapeData: 'true' +# preventFailureOnNoResponse: 'true' +# ignoreStatusCodes: '400,404,401,403,429,500,502,503,504' - name: Copy Jar to Test Server id: deploy-jar