From dad629aaff2cf5c270b7fffeb98dfb9e3d1c93e5 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sun, 12 Jan 2025 13:58:21 -0500 Subject: [PATCH] Run test --- .github/workflows/build_push.yml | 145 ++++++++++++++++--------------- 1 file changed, 73 insertions(+), 72 deletions(-) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index ce51bb313..669e0441c 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -4,6 +4,7 @@ on: push: branches: - master + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -160,76 +161,76 @@ jobs: path: upload/* if-no-files-found: error - release: - needs: bundle - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v4 - with: - name: jar - path: release - - uses: actions/download-artifact@v4 - with: - name: debian-all - path: release - - uses: actions/download-artifact@v4 - with: - name: linux-assets - path: release - - uses: actions/download-artifact@v4 - with: - name: linux-x64 - path: release - - uses: actions/download-artifact@v4 - with: - name: macOS-x64 - path: release - - uses: actions/download-artifact@v4 - with: - name: macOS-arm64 - path: release - - uses: actions/download-artifact@v4 - with: - name: windows-x64 - path: release - - - name: Checkout Preview branch - uses: actions/checkout@v4 - with: - repository: "Suwayomi/Suwayomi-Server-preview" - ref: main - path: preview - token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} - - - name: Generate Tag Name - id: GenTagName - run: | - cd release - genTag=$(ls *.jar | sed -e's/Suwayomi-Server-\|.jar//g') - echo "$genTag" - echo "value=$genTag" >> $GITHUB_OUTPUT - - - name: Create Tag - run: | - TAG="${{ steps.GenTagName.outputs.value }}" - echo "tag: $TAG" - cd preview - echo "{ \"latest\": \"$TAG\" }" > index.json - git add index.json - git config --global user.email \ - "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - git commit -m "Updated to $TAG" - git push origin main - - git tag $TAG - git push origin $TAG - - - name: Upload Preview Release - uses: softprops/action-gh-release@v2 - with: - token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} - repository: "Suwayomi/Suwayomi-Server-preview" - tag_name: ${{ steps.GenTagName.outputs.value }} - files: release/* +# release: +# needs: bundle +# runs-on: ubuntu-latest +# steps: +# - uses: actions/download-artifact@v4 +# with: +# name: jar +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: debian-all +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: linux-assets +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: linux-x64 +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: macOS-x64 +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: macOS-arm64 +# path: release +# - uses: actions/download-artifact@v4 +# with: +# name: windows-x64 +# path: release +# +# - name: Checkout Preview branch +# uses: actions/checkout@v4 +# with: +# repository: "Suwayomi/Suwayomi-Server-preview" +# ref: main +# path: preview +# token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} +# +# - name: Generate Tag Name +# id: GenTagName +# run: | +# cd release +# genTag=$(ls *.jar | sed -e's/Suwayomi-Server-\|.jar//g') +# echo "$genTag" +# echo "value=$genTag" >> $GITHUB_OUTPUT +# +# - name: Create Tag +# run: | +# TAG="${{ steps.GenTagName.outputs.value }}" +# echo "tag: $TAG" +# cd preview +# echo "{ \"latest\": \"$TAG\" }" > index.json +# git add index.json +# git config --global user.email \ +# "github-actions[bot]@users.noreply.github.com" +# git config --global user.name "github-actions[bot]" +# git commit -m "Updated to $TAG" +# git push origin main +# +# git tag $TAG +# git push origin $TAG +# +# - name: Upload Preview Release +# uses: softprops/action-gh-release@v2 +# with: +# token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} +# repository: "Suwayomi/Suwayomi-Server-preview" +# tag_name: ${{ steps.GenTagName.outputs.value }} +# files: release/*