Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha <dev@alpha93.kr>
  • Loading branch information
AlphaKR93 authored Dec 9, 2023
1 parent 922c331 commit 1764af5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
repository: PlazmaMC/Javadocs
path: javadoc
ref: main
token: ${{ secrets.GH_PAT }}
token: $GITHUB_TOKEN

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up GraalVM ${{ matrix.base_jdk }}
uses: graalvm/setup-graalvm@v1
with:
github-token: ${{ secrets.GH_PAT }}
github-token: $GITHUB_TOKEN
java-version: ${{ matrix.base_jdk }}
version: latest
cache: 'gradle'
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
if: github.ref_name == env.MAIN_BRANCH
run: |
export GITHUB_USERNAME=${{ env.ORG_NAME }}
export GITHUB_TOKEN=${{ secrets.GH_PAT }}
export GITHUB_TOKEN=$GITHUB_TOKEN
./gradlew publish --stacktrace
- name: Upload Artifacts
Expand All @@ -93,7 +93,7 @@ jobs:
with:
title: "Release #${{ env.RELEASE }}"
automatic_release_tag: release-${{ env.RELEASE }}
repo_token: "${{ secrets.GH_PAT }}"
repo_token: "$GITHUB_TOKEN"
files: build/libs/*.jar
prerelease: false

Expand All @@ -103,7 +103,7 @@ jobs:
with:
title: "Release #${{ env.RELEASE }}"
automatic_release_tag: latest-${{ env.MC_VERSION }}
repo_token: "${{ secrets.GH_PAT }}"
repo_token: "$GITHUB_TOKEN"
files: build/libs/*.jar
prerelease: false

Expand All @@ -113,6 +113,6 @@ jobs:
with:
title: "Development build for ${{ env.MC_VERSION }}"
automatic_release_tag: dev-${{ env.MC_VERSION }}
repo_token: "${{ secrets.GH_PAT }}"
repo_token: "$GITHUB_TOKEN"
files: build/libs/*.jar
prerelease: true

0 comments on commit 1764af5

Please sign in to comment.