Skip to content

test-release-6

test-release-6 #15

Workflow file for this run

# This workflow will run tests using node and then publish a package to itch.io through Butler when a release is created
# For more information see: https://github.com/yeslayla/butler-publish-itchio-action#readme
name: Butler Publish
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
publish-itchio:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: |
echo 'PACKAGE_JSON<<EOF' >> $GITHUB_ENV
cat ./package.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Butler Push
uses: yeslayla/butler-publish-itchio-action@v1.0.3
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ vars.BUTLER_CHANNEL }}
ITCH_GAME: ${{ vars.ITCH_GAME }}
ITCH_USER: ${{ vars.ITCH_USER }}
PACKAGE: dist/${{ github.event.repository.name }}-${{ fromJson(env.PACKAGE_JSON).version }}.lcp
VERSION: ${{ fromJson(env.PACKAGE_JSON).version }}