From 3f85f52efbb284dd87cffbad206f6875fef81c39 Mon Sep 17 00:00:00 2001 From: RafaelWO <38643099+RafaelWO@users.noreply.github.com> Date: Sun, 27 Jun 2021 16:18:23 +0200 Subject: [PATCH] Added release step --- .github/workflows/main.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2b8124..f5d1af3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,11 +5,9 @@ name: Love Build # Controls when the action will run. on: # Triggers the workflow on push with a tag 'v*' - - #push: - # tags: - # - v* - # branches: [ main ] + push: + tags: + - 'v*.*.*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -30,6 +28,7 @@ jobs: # uses: nhartland/love-build@a6462dd03e091b755d320b2b7f9714b461631b63 # uses: nhartland/love-build@v1-beta2 uses: RafaelWO/love-build@fix/macos-build-combatibility + id: love-build with: # Name of the application to be built app_name: space-love @@ -42,3 +41,15 @@ jobs: with: name: built-applications path: 'release' + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ${{ steps.love-build.outputs.macos-filename }} + ${{ steps.love-build.outputs.win32-filename }} + ${{ steps.love-build.outputs.win64-filename }} + ${{ steps.love-build.outputs.love-filename }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}