Skip to content

release

release #1

Workflow file for this run

name: release
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}
env:
ITCH_USER: sweetheartsquad
ITCH_GAME: mech-jam-5
DISCORD_USERNAME: ${{ github.repository }}
DISCORD_AVATAR: https://raw.githubusercontent.com/${{ github.repository }}/main/src/assets/icon.png
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: Ilshidur/[email protected]
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: '[{ "color": 16426275, "title": "deploying...", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }]'
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run build
- id: package-version
uses: martinbeentjes/[email protected]
- uses: josephbmanley/[email protected]
env:
BUTLER_CREDENTIALS: ${{ secrets.ITCH_API_KEY }}
CHANNEL: web
ITCH_GAME: ${{ env.ITCH_GAME }}
ITCH_USER: ${{ env.ITCH_USER }}
PACKAGE: dist
VERSION: ${{ steps.package-version.outputs.current-version }}
- uses: Ilshidur/[email protected]
if: ${{ success() }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: '[{ "color": 2357925, "title": "v${{ steps.package-version.outputs.current-version }} deployed", "url": "https://${{ env.ITCH_USER }}.itch.io/${{ env.ITCH_GAME }}" }]'
- uses: Ilshidur/[email protected]
if: ${{ failure() }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: '[{ "color": 16393080, "title": "failed", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }]'