Skip to content

build-nightly-snapshot #1526

build-nightly-snapshot

build-nightly-snapshot #1526

Workflow file for this run

name: build-nightly-snapshot
on:
schedule:
- cron: "0 7 * * *"
push:
paths:
- '.github/workflows/nightly.yml'
env:
WEBP_UTIL: libwebp-1.1.0-linux-x86-64
USELESS_VAR: 9
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install-dep
run: |
sudo apt -y update || true
sudo apt -y install git python3 python3-yaml python3-jinja2 python3-pip python3-setuptools python3-pil python3-bs4 zip unzip
pip3 install --user git+https://github.com/FurryGamesIndex/python-markdown2
wget "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/${WEBP_UTIL}.tar.gz"
tar xvf "${WEBP_UTIL}.tar.gz"
- name: download
run: |
wget https://github.com/FurryGamesIndex/games/releases/download/_gh_assets/FGI-nightly.zip -O prev.zip || true
unzip prev.zip || true
[ -d FGI-nightly ] || echo "warning: getting prev build failed"
mv FGI-nightly FGI-nightly-cache || true
- name: gen
env:
FGI_OFFLINE_WEBP: 1
run: |
python3 --version
export PATH="./${WEBP_UTIL}/bin/:$PATH"
cwebp -version
gif2webp -version
./scripts/build-offline-version.sh FGI-nightly FGI-nightly-cache
zip -r output.zip FGI-nightly
zip -r output-webp.zip FGI-nightly-webp
- name: upload-release-webp
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: output-webp.zip
asset_name: FGI-nightly-webp.zip
tag: _gh_assets
overwrite: true
- name: upload-release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: output.zip
asset_name: FGI-nightly.zip
tag: _gh_assets
overwrite: true