Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewl committed Jan 16, 2024
1 parent ad2ff58 commit 7b6fde4
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
name: Deploy
name: itch.io upload

on:
push:
paths:
- "version"
- ".github/workflows/upload-itchio.yml"
- "export_presets.html.example"

on: push
env:
ITCH_USERNAME: 4ndrewl
ITCH_GAME_ID: smallworld
WORKING_DIRECTORY: .

jobs:
deploy:
name: Upload to Itch
strategy:
fail-fast: true
if: github.ref == 'refs/heads/prod'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2.0.8
with:
name: 'html5'
path: build
- uses: KikimoraGames/itch-publish@v0.0.3
- name: Checkout source code
uses: actions/checkout@v3

- name: Upload to itch.io
uses: dulvui/itchio-butler-upload@v0.0.1
with:
butlerApiKey: ${{secrets.BUTLER_API_KEY}}
gameData: ./build
itchUsername: ${{env.ITCH_USERNAME}}
itchGameId: ${{ env.ITCH_GAME_ID }}
buildChannel: 'html5'
buildNumber: ${{ needs.version.outputs.version_hash }}
working-directory: .
api-key: ${{ secrets.ITCHIO_API_KEY }}
user: 4ndrewl
game: smallworld
channel: html5

0 comments on commit 7b6fde4

Please sign in to comment.