Skip to content

Commit

Permalink
ci: add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
elkangaroo committed May 27, 2024
1 parent bb61c3b commit 48d287f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/compile_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: Compile & Release
on:
# Trigger the workflow manually from the Actions tab
workflow_dispatch:
inputs:
release:
description: Release-Version (leave empty to skip Release)
default: ""
release_name:
description: Release-Name
default: ""

jobs:
compile_and_release:
Expand All @@ -22,3 +29,11 @@ jobs:
path: "game.love"
name: "game.love" # Default is 'artifact'
retention-days: 30

- name: Release
if: ${{ github.event.inputs.release != '' }}
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.event.inputs.release }}
name: "Version ${{ github.event.inputs.release }}: ${{ github.event.inputs.release_name }}"
files: "*.love"

0 comments on commit 48d287f

Please sign in to comment.