mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-21 22:32:53 +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:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: 'stable'
|
ref: 'stable'
|
||||||
- name: Install dependencies (Ubuntu)
|
- name: Install dependencies (Ubuntu)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libzip-dev xvfb
|
|
||||||
sudo add-apt-repository -y ppa:bartbes/love-stable
|
sudo add-apt-repository -y ppa:bartbes/love-stable
|
||||||
sudo apt-get -q update
|
sudo apt-get -q update
|
||||||
sudo apt-get -y install love
|
sudo apt-get install -y xvfb love
|
||||||
$GITHUB_WORKSPACE/.luarocks/bin/luarocks install --server="http://luarocks.org/dev" lua-zip
|
|
||||||
$GITHUB_WORKSPACE/.luarocks/bin/luarocks install love-release
|
|
||||||
- name: Generate Daily
|
- name: Generate Daily
|
||||||
env:
|
env:
|
||||||
WEBHOOK: ${{ secrets.WEBHOOK }}
|
WEBHOOK: ${{ secrets.WEBHOOK }}
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
cd src
|
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love src --daily
|
||||||
love-release
|
|
||||||
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
|
|
||||||
cat daily.txt
|
cat daily.txt
|
||||||
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
||||||
|
|
Loading…
Reference in a new issue