mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-24 07:43:04 +00:00
skip love-release, use love directly
This commit is contained in:
parent
02f5f3ea5e
commit
65472dfd78
14
.github/workflows/daily.yml
vendored
14
.github/workflows/daily.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue