skip love-release, use love directly

This commit is contained in:
duncathan salt 2022-01-11 17:31:24 -06:00 committed by GitHub
parent 02f5f3ea5e
commit 65472dfd78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,30 +13,20 @@ jobs:
os:
- ubuntu-latest
steps:
- uses: leafo/gh-actions-lua@v8.0.0
- uses: leafo/gh-actions-luarocks@v4.0.0
with:
luarocksVersion: "3.0.4"
- uses: actions/checkout@v2
with:
ref: 'stable'
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libzip-dev xvfb
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get -q update
sudo apt-get -y install love
$GITHUB_WORKSPACE/.luarocks/bin/luarocks install --server="http://luarocks.org/dev" lua-zip
$GITHUB_WORKSPACE/.luarocks/bin/luarocks install love-release
sudo apt-get install -y xvfb love
- name: Generate Daily
env:
WEBHOOK: ${{ secrets.WEBHOOK }}
run: |
cd $GITHUB_WORKSPACE
cd src
love-release
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love src --daily
cat daily.txt
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"