Skip to content

Consume energy when firing weapon #32

Consume energy when firing weapon

Consume energy when firing weapon #32

Workflow file for this run

on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- preset: macOS
artifact: mac.zip
channel: mac
- preset: Windows
artifact: Windows
channel: windows
runs-on: ubuntu-latest
steps:
- name: Install Godot
working-directory: ${{ env.RUNNER_TEMP }}
run: |
curl -sL https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip -o godot.zip
unzip godot.zip
mv Godot_v4.2.2-stable_linux.x86_64 "$RUNNER_TEMP/godot"
- name: Install butler
working-directory: ${{ env.RUNNER_TEMP }}
run: |
curl -sL https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default -o butler.zip
unzip butler.zip
mv butler "$RUNNER_TEMP/butler"
- uses: actions/checkout@v4
- name: Prepare export templates
run: |
mkdir -p ~/.local/share/godot/export_templates/4.2.2.stable
mv build/export_templates/* ~/.local/share/godot/export_templates/4.2.2.stable/
- name: Export ${{ matrix.config.preset }} build
run: |
"$RUNNER_TEMP/godot" --headless --export-release "${{ matrix.config.preset }}"
- name: Push to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
run: |
"$RUNNER_TEMP/butler" push "build/${{ matrix.config.artifact }}" "jspahrsummers/Merc:${{ matrix.config.channel }}"