From ac9a376a89ad1125145fccb251de7452340e86a5 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Thu, 23 May 2024 22:48:27 -0600 Subject: [PATCH] Remove pushing to TWLBot --- .github/workflows/nightly.yml | 36 ----------------------------------- .github/workflows/release.yml | 14 -------------- 2 files changed, 50 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 3639bf7b12..85aee16f93 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -156,42 +156,6 @@ jobs: with: name: build path: build - - name: Commit and push to TWLBot/Builds - id: commit - run: | - CURRENT_DATE=$(date +"%Y%m%d-%H%M%S") - echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT - - git config --global user.email "flamekat54@aol.com" - git config --global user.name "TWLBot" - git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/TWLBot/Builds.git - cd Builds/ - cp ${{ github.workspace }}/build/*.7z . - mv ${{ github.workspace }}/build/apfix.pck extras - mv ${{ github.workspace }}/build/widescreen.pck extras - git stage . - git commit -m "TWiLightMenu | $COMMIT_HASH" - git tag v$CURRENT_DATE - git push origin v$CURRENT_DATE master - - name: Release to TWLBot/Builds - run: | - AUTH_HEADER="Authorization: token ${{ secrets.TWLBOT_TOKEN }}" - CONTENT_TYPE="Content-Type: application/json" - API_URL="https://api.github.com/repos/TWLBot/Builds/releases" - RELEASE_INFO="{\"tag_name\": \"v${{ steps.commit.outputs.current_date }}\", \"name\": \"TWiLightMenu | $COMMIT_HASH\", \"body\": \"$AUTHOR_NAME - $COMMIT_SUBJECT\", \"prerelease\": true}" - - RESPONSE=$(curl -XPOST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" "$API_URL" -d "$RELEASE_INFO") - - ID=$(echo $RESPONSE | jq --raw-output '.id') - - for file in ${{ github.workspace }}/build/*.7z; do - AUTH_HEADER="Authorization: token ${{ secrets.TWLBOT_TOKEN }}" - CONTENT_LENGTH="Content-Length: $(stat -c%s $file)" - CONTENT_TYPE="Content-Type: application/7z-x-compressed" - UPLOAD_URL="https://uploads.github.com/repos/TWLBot/Builds/releases/$ID/assets?name=$(basename $file)" - - curl -XPOST -H "$AUTH_HEADER" -H "$CONTENT_LENGTH" -H "$CONTENT_TYPE" --upload-file "$file" "$UPLOAD_URL" - done send_success_webhook: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edb80ab025..c58ed0b0ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -208,20 +208,6 @@ jobs: with: name: build path: build - - name: Commit and push debug files to TWLBot/Builds - id: commit - run: | - CURRENT_DATE=$(date +"%Y%m%d-%H%M%S") - echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT - - git config --global user.email "flamekat54@aol.com" - git config --global user.name "TWLBot" - git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/TWLBot/Builds.git - cd Builds/ - cp ${{ github.workspace }}/build/TWiLightMenu-debug-release.7z . - git stage . - git commit -m "TWiLightMenu (Release) | $COMMIT_TAG" - git push origin master - name: Upload to ${{ github.repository }} release run: | # Delete debug 7z