6
0
This commit is contained in:
Jon Michael Aanes 2023-11-09 21:25:04 +01:00
parent 96beb5b283
commit f6021fc9f6

View File

@ -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 }}