diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 93493dd..e48c9c9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITEA_TOKEN }} + token: ${{ secrets.RELEASE_TOKEN }} - name: Set up Java uses: actions/setup-java@v4 @@ -43,7 +43,7 @@ jobs: - name: Run semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | npx -y \ -p semantic-release \ @@ -93,7 +93,7 @@ jobs: - name: Create Gitea release and upload plugin if: steps.release.outputs.created == 'true' env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} GITEA_SERVER_URL: ${{ github.server_url }} REPOSITORY: ${{ github.repository }} TAG: ${{ steps.release.outputs.tag }} diff --git a/README.md b/README.md index 835765f..ff7254e 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Gitea Actions runs the Gradle checks for every push and pull request and stores - `feat:` creates a minor release; - a breaking-change footer or `!` creates a major release. -A successful release creates a `vX.Y.Z` tag and attaches `spigot-event-producer-X.Y.Z.jar` permanently to the corresponding Gitea Release. The release workflow requires a repository secret named `GITEA_TOKEN` with repository contents write permission. +A successful release creates a `vX.Y.Z` tag and attaches `spigot-event-producer-X.Y.Z.jar` permanently to the corresponding Gitea Release. The release workflow requires a repository secret named `RELEASE_TOKEN` with repository contents write permission. For a local versioned build: