From 42041259eefc2aa47e7ecf72fe6a8b75e2af6d85 Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 13:44:49 +0000 Subject: [PATCH 1/8] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4addceb..6af8334 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -42,7 +42,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git tag -a "v${{ steps.extract_version.outputs.version }}" -m "Release v${{ steps.extract_version.outputs.version }}" - git push https://${{ secrets.PUBBUILD }}@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" + git push https://${{ secrets.SPIGOT }}@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" - name: Create GitHub Release if: steps.check_tag.outputs.exists == 'false' @@ -52,4 +52,4 @@ jobs: release_name: "Release v${{ steps.extract_version.outputs.version }}" files: build/libs/*.jar env: - GITHUB_TOKEN: ${{ secrets.PUBBUILD }} + GITHUB_TOKEN: ${{ secrets.SPIGOT }} From 97a82bc316db1b1e579db6520ae57f986154b3ea Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 13:47:57 +0000 Subject: [PATCH 2/8] Update gradle.yml --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 6af8334..4af798a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -42,7 +42,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git tag -a "v${{ steps.extract_version.outputs.version }}" -m "Release v${{ steps.extract_version.outputs.version }}" - git push https://${{ secrets.SPIGOT }}@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" + git push https://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@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" - name: Create GitHub Release if: steps.check_tag.outputs.exists == 'false' From 45f1f6c57e00bd7cc1cd924336612ddc335f8b53 Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 13:53:02 +0000 Subject: [PATCH 3/8] Update gradle.yml --- .github/workflows/gradle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4af798a..567a565 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,6 +14,8 @@ jobs: with: java-version: '17' distribution: 'adopt' + env: + GITHUB_TOKEN: ${{ secrets.SPIGOT }} - name: Grant execute permission for gradlew run: chmod +x ./gradlew @@ -42,7 +44,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git tag -a "v${{ steps.extract_version.outputs.version }}" -m "Release v${{ steps.extract_version.outputs.version }}" - git push https://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@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" + git push https://${{ secrets.SPIGOT }}@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" - name: Create GitHub Release if: steps.check_tag.outputs.exists == 'false' @@ -51,5 +53,3 @@ jobs: tag_name: "v${{ steps.extract_version.outputs.version }}" release_name: "Release v${{ steps.extract_version.outputs.version }}" files: build/libs/*.jar - env: - GITHUB_TOKEN: ${{ secrets.SPIGOT }} From 6b58783e088acc14426e313efdf11a5b3e686e6c Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 14:19:31 +0000 Subject: [PATCH 4/8] Update gradle.yml --- .github/workflows/gradle.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 567a565..b113da3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -39,12 +39,17 @@ jobs: echo "::set-output name=exists::false" fi - - name: Push Tag - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git tag -a "v${{ steps.extract_version.outputs.version }}" -m "Release v${{ steps.extract_version.outputs.version }}" - git push https://${{ secrets.SPIGOT }}@github.com/sammyt291/FineHarvest.git "v${{ steps.extract_version.outputs.version }}" + - name: Create Tag + # You may pin to the exact commit or the version. + # uses: negz/create-tag@39bae1e0932567a58c20dea5a1a0d18358503320 + uses: negz/create-tag@v1 + with: + # Github Token + token: ${{secrets.SPIGOT}} + # Version + version: "v${{ steps.extract_version.outputs.version }}" + # Tag message + message: "" - name: Create GitHub Release if: steps.check_tag.outputs.exists == 'false' From c7f82dc1ebacd0a93ce2a46aabe4680e0cf8e601 Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 14:26:33 +0000 Subject: [PATCH 5/8] Update gradle.yml --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index b113da3..079774f 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -45,7 +45,7 @@ jobs: uses: negz/create-tag@v1 with: # Github Token - token: ${{secrets.SPIGOT}} + token: ${{secrets.GITHUB_TOKEN}} # Version version: "v${{ steps.extract_version.outputs.version }}" # Tag message From afd3b7764523e9db0caab540bb24f5c9a6700c18 Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 14:31:32 +0000 Subject: [PATCH 6/8] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 079774f..4b6905e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,7 +15,7 @@ jobs: java-version: '17' distribution: 'adopt' env: - GITHUB_TOKEN: ${{ secrets.SPIGOT }} + GITHUB_TOKEN: ${{ secrets.TEST }} - name: Grant execute permission for gradlew run: chmod +x ./gradlew @@ -45,7 +45,7 @@ jobs: uses: negz/create-tag@v1 with: # Github Token - token: ${{secrets.GITHUB_TOKEN}} + token: ${{secrets.TEST}} # Version version: "v${{ steps.extract_version.outputs.version }}" # Tag message From 1b8399891fe01dc5afd016307f816088b87eaa45 Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 14:35:36 +0000 Subject: [PATCH 7/8] Update gradle.yml --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4b6905e..e7bbe77 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -56,5 +56,5 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: "v${{ steps.extract_version.outputs.version }}" - release_name: "Release v${{ steps.extract_version.outputs.version }}" + name: "Release v${{ steps.extract_version.outputs.version }}" files: build/libs/*.jar From fdcc6b7cb8f01e6dcbc131c2e029474c728878cb Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Sat, 25 Nov 2023 14:48:05 +0000 Subject: [PATCH 8/8] Update gradle.yml --- .github/workflows/gradle.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e7bbe77..44356a1 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,8 +14,6 @@ jobs: with: java-version: '17' distribution: 'adopt' - env: - GITHUB_TOKEN: ${{ secrets.TEST }} - name: Grant execute permission for gradlew run: chmod +x ./gradlew @@ -44,17 +42,15 @@ jobs: # uses: negz/create-tag@39bae1e0932567a58c20dea5a1a0d18358503320 uses: negz/create-tag@v1 with: - # Github Token token: ${{secrets.TEST}} - # Version version: "v${{ steps.extract_version.outputs.version }}" - # Tag message message: "" - name: Create GitHub Release if: steps.check_tag.outputs.exists == 'false' uses: softprops/action-gh-release@v1 with: + token: ${{secrets.TEST}} tag_name: "v${{ steps.extract_version.outputs.version }}" name: "Release v${{ steps.extract_version.outputs.version }}" files: build/libs/*.jar