2022-02-18 21:28:13 +00:00
|
|
|
name: learn-github-actions
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2022-05-13 16:00:33 +00:00
|
|
|
create-nightly-html5:
|
2022-02-18 21:28:13 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-18 21:47:44 +00:00
|
|
|
- uses: krdlab/setup-haxe@v1.1.6
|
|
|
|
with:
|
|
|
|
haxe-version: 4.2.4
|
2022-02-18 21:31:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
2022-02-18 22:43:45 +00:00
|
|
|
- name: Cache Haxe Stuff
|
|
|
|
run: |
|
2022-02-18 22:46:54 +00:00
|
|
|
haxelib config
|
2022-05-13 15:55:33 +00:00
|
|
|
- name: Installing Haxe lol
|
2022-02-18 22:16:29 +00:00
|
|
|
run: |
|
2022-02-18 21:49:51 +00:00
|
|
|
haxe -version
|
2022-05-13 17:24:20 +00:00
|
|
|
haxelib --global install hmm
|
|
|
|
haxelib --global run hmm setup
|
|
|
|
hmm install --quiet
|
2022-02-18 22:04:48 +00:00
|
|
|
haxelib run lime setup linux
|
2022-02-18 22:16:29 +00:00
|
|
|
- name: Build game?
|
|
|
|
run: |
|
2022-02-18 22:33:32 +00:00
|
|
|
haxelib run lime build html5 -debug -clean
|
2022-02-18 22:16:29 +00:00
|
|
|
ls
|
2022-02-18 22:46:54 +00:00
|
|
|
- name: Install butler and shit
|
|
|
|
run: |
|
|
|
|
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
|
|
|
|
unzip butler.zip
|
|
|
|
chmod +x butler
|
|
|
|
./butler -V
|
2022-02-18 23:08:46 +00:00
|
|
|
- name: Upload game to itch.io
|
|
|
|
env:
|
|
|
|
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY}}
|
|
|
|
run: |
|
2022-02-18 22:55:31 +00:00
|
|
|
./butler login
|
2022-02-18 23:18:01 +00:00
|
|
|
./butler push export/debug/html5/bin ninja-muffin24/funkin-secret:html5
|
2022-02-18 22:16:29 +00:00
|
|
|
|