From f6021fc9f67004d729e5132cf8c75233dad805ca Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 9 Nov 2023 21:25:04 +0100 Subject: [PATCH] Release? --- .gitea/workflows/love2d.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/love2d.yaml b/.gitea/workflows/love2d.yaml index 126fdd5..6af2809 100644 --- a/.gitea/workflows/love2d.yaml +++ b/.gitea/workflows/love2d.yaml @@ -35,8 +35,14 @@ jobs: User ${{ secrets.PIPELINE_WORKER_USERNAME }} - name: Check out repository uses: actions/checkout@v3 + +# Create artifacts + - name: Creating binaries run: fish ${{ github.workspace }}/assemble release + +# Upload produced artifacts + - name: Uploading artifacts (love) uses: actions/upload-artifact@v3 with: @@ -49,15 +55,19 @@ jobs: name: "${{ github.event.repository.name }}-win64.zip" path: "${{ github.workspace }}/bin/*-win64.zip" if-no-files-found: error - - name: Look around - run: ls -lR bin + +# Determine files + - name: Finding love id: findfiles run: | echo "love="$(ls bin/*.love) >> "$GITHUB_OUTPUT" echo "win64="$(ls bin/*-win64.zip) >> "$GITHUB_OUTPUT" + +# Upload to itch + - uses: KikimoraGames/itch-publish@v0.0.3 - if: always() + if: always() && github.event_name == 'release' && ITCH_GAME_ID with: butlerApiKey: ${{ secrets.BUTLER_API_KEY }} gameData: ${{ steps.findfiles.outputs.love }} @@ -65,7 +75,7 @@ jobs: itchGameId: ${{ inputs.ITCH_GAME_ID }} buildChannel: love-linux-win-mac - uses: KikimoraGames/itch-publish@v0.0.3 - if: always() && github.event_name == 'release' + if: always() && github.event_name == 'release' && ITCH_GAME_ID with: butlerApiKey: ${{ secrets.BUTLER_API_KEY }} gameData: ${{ steps.findfiles.outputs.win64 }}