From 77a737dd0ee25f55113a6631bcd33f682fb73002 Mon Sep 17 00:00:00 2001 From: turikhay Date: Sat, 23 Mar 2024 13:09:38 +0300 Subject: [PATCH] fix secrets --- .github/workflows/build.yml | 10 ++++++++-- .github/workflows/hangar.yml | 2 +- .github/workflows/modrinth.yml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63981ff..df938c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,12 @@ on: artifact: description: Path to the jar artifact value: ${{ jobs.build.outputs.artifact }} + secrets: + hangar-token: + required: false + modrinth-token: + required: false + permissions: contents: write @@ -51,9 +57,9 @@ jobs: -PprotocolLib_version=4.2.1 env: HANGAR_UPLOAD: ${{ inputs.hangar-upload }} - HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }} + HANGAR_TOKEN: ${{ secrets.hangar-token }} MODRINTH_UPLOAD: ${{ inputs.modrinth-upload }} - MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + MODRINTH_TOKEN: ${{ secrets.modrinth-token }} - name: Force original path preservation (for upload-artifact@v3) run: touch .empty - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/hangar.yml b/.github/workflows/hangar.yml index 86fe80c..6e736e5 100644 --- a/.github/workflows/hangar.yml +++ b/.github/workflows/hangar.yml @@ -14,4 +14,4 @@ jobs: version: ${{ needs.version.outputs.version }} hangar-upload: true secrets: - HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }} + hangar-token: ${{ secrets.HANGAR_TOKEN }} diff --git a/.github/workflows/modrinth.yml b/.github/workflows/modrinth.yml index 4a20a64..c417ddd 100644 --- a/.github/workflows/modrinth.yml +++ b/.github/workflows/modrinth.yml @@ -14,4 +14,4 @@ jobs: version: ${{ needs.version.outputs.version }} modrinth-upload: true secrets: - MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + modrinth-token: ${{ secrets.MODRINTH_TOKEN }}