diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2c0b7f..ef4867d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + + - name: Get tag or commit id + id: get-version-id + uses: iawia002/get-tag-or-commit-id@v1 - name: Set up JDK 8 uses: actions/setup-java@v2 @@ -36,7 +40,7 @@ jobs: files: | target/ForgeServerJAR.jar token: ${{ secrets.GITHUB_TOKEN }} - release_name: Release ${{ GITHUB_SHA::6 }} - tag_name: ${{ GITHUB_SHA::6 }} + release_name: Release ${{ steps.get-version-id.outputs.id }} + tag_name: ${{ steps.get-version-id.outputs.id }} draft: false prerelease: false