From e05a80149a1e3c9e05627e7e111c022cdaaa0151 Mon Sep 17 00:00:00 2001 From: HaeImAlan Date: Tue, 30 Jan 2024 20:09:20 +0800 Subject: [PATCH] I wonder if you can just use `on: push` without tags --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92929e1..813a5bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build jar -on: workflow_dispatch +on: push jobs: build: @@ -20,5 +20,17 @@ jobs: with: name: cubingPaper path: target/paperspigot-1.8.8-R0.1-SNAPSHOT.jar + - name: Create Release + uses: ncipollo/release-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + artifacts: target/paperspigot-1.8.8-R0.1-SNAPSHOT.jar + draft: false + prerelease: true + releaseName: ${{ github.ref }} + releaseNotes: | + This is an automated release. +