From 3d9410e67005d37bcf056fa89c15cfabe05605e1 Mon Sep 17 00:00:00 2001 From: Taskeren Date: Mon, 22 Mar 2021 17:58:36 +0800 Subject: [PATCH] support for release --- .github/workflows/buildspigot-buildtools.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/buildspigot-buildtools.yml b/.github/workflows/buildspigot-buildtools.yml index a8ae2d6..f59c877 100644 --- a/.github/workflows/buildspigot-buildtools.yml +++ b/.github/workflows/buildspigot-buildtools.yml @@ -26,3 +26,17 @@ jobs: with: name: spigot path: ./spigot*.jar + + - name: Getting Current Date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + + - name: Creating Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + title: "Nightly Spigot ${{ steps.date.outputs.date }}" + automatic_release_tag: "${{ steps.date.outputs.date }}" + files: | + ./spigot*.jar