1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-10-27 18:05:09 +00:00
Funkin/.github/actions/upload-itch/action.yml
Cameron Taylor 3918abe8a1 ANOTHER REBASE CLEAN CLEAN
revert commit lol?

action seperating hehe

directory fix?

runs / compsite action fix

shell bash fix? lol

seperate out the butler/itchio stuff

took out nasty env thingie in the action

butler api key fix perhaps?

lol target woops

linux build easy?

mac yolo test?

moved all to one main github workflow, and better butler downloading

rename the workflow lol

better if statement maybe?

oops fixed indentation lol!

missing shell, im dumb!!

mac fix and maybe even windows?

hmm fix perhaps

dont need the HMM setup actually?

REBASE / SQUASH STUFF LOL
windows linux butler installing?

haxelib caching?

cache fix lol?

actual cache fix... lol

ok i am getting trolled....

actual hashfile, woops

hopefully cache fix, and no more "clean" builds

added workflow dispatch too

better workflow_dispatch thing?

NO CACHE BULLSHIT

ok actually maybe cache?

idk some shit with syntax

ok no more cache...

just cache the haxelib stuff

format fix teehee
2022-05-18 23:45:06 -04:00

44 lines
1.4 KiB
YAML

name: upload-itch
description: "installs Butler, and uploads to itch.io!"
inputs:
butler-key:
description: "Butler API secret key"
required: true
build-dir:
description: "Directory of the game build"
required: true
target:
description: "Target (html5, win, linux, mac)"
required: true
runs:
using: "composite"
steps:
- name: Install butler Windows
if: runner.os == 'Windows'
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default
7z x butler.zip
./butler -v
shell: bash
- name: Install butler Mac
if: runner.os == 'macOS'
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
unzip butler.zip
./butler -V
shell: bash
- name: Install butler Linux
if: runner.os == 'Linux'
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
unzip butler.zip
chmod +x butler
./butler -V
shell: bash
- name: Upload game to itch.io
env:
BUTLER_API_KEY: ${{inputs.butler-key}}
run: |
./butler login
./butler push ${{inputs.build-dir}} ninja-muffin24/funkin-secret:${{inputs.target}}-${GITHUB_REF##*/}
shell: bash