Skip to content

Update Pokemon_Mystery_Dungeon_Explorers_of_Sky.yaml #1393

Update Pokemon_Mystery_Dungeon_Explorers_of_Sky.yaml

Update Pokemon_Mystery_Dungeon_Explorers_of_Sky.yaml #1393

Workflow file for this run

name: deploy-website
on:
push:
branches: [ master ]
paths-ignore:
- 'doc/**'
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
#- name: tg-notify
# env:
# TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
# TELEGRAM_TO_EN: ${{ secrets.TELEGRAM_TO_EN }}
# TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
# run: |
# ./scripts/newgame-tg.sh
- 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 webp
pip3 install --user git+https://github.com/FurryGamesIndex/python-markdown2
pip3 install --user OpenCC
python3 --version
cwebp -version
mkdir -p .cache
- name: cache
uses: actions/cache@v3
with:
path: |
.cache
key: FGI-main-cache
- name: fix-mtime
run: |
./scripts/fix-mtime.sh
- name: update-btime
run: |
./scripts/update-btime.py games .cache/btime.json
#- name: lint
# env:
# LINT_OLD_FILES_EXEMPTION: true
# run: |
# ./scripts/dbutils.sh list-game-files | xargs -I{} ./scripts/lint.sh game {}
# ./scripts/dbutils.sh list-game-l10n-files | xargs -I{} ./scripts/lint.sh game-l10n {}
- name: build
run: |
./generate.py \
--images-candidate-webp \
--with-rss \
--mtime-has-fixed \
--btime-file .cache/btime.json \
--plugin steam-cdn-unite,verbose=1 \
--plugin zhconv,critical \
output
mkdir -p output/_internal
cp .cache/btime.json output/_internal/btime.json
- name: ssh-key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY_RSA }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: deploy
run: |
mv .git _git
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
git config --global user.email "[email protected]"
git config --global user.name "deploy-bot"
cd output
git init
git remote add origin [email protected]:FurryGamesIndex/FurryGamesIndex.github.io
git add .
git commit -m 'deploy website'
echo "FGI_GITHUB_PAGES_REV=$(git rev-parse HEAD)" >> "${GITHUB_ENV}"
git push -f origin master
cd ..
rm -rf output
mv _git .git
# - name: cn-build
# run: |
# ./generate.py \
# --no-sitemap \
# --images-candidate-webp \
# --with-rss \
# --mtime-has-fixed \
# --plugin steam-cdn-unite,cdn=china \
# --plugin cn-optimize,rev="$FGI_GITHUB_PAGES_REV" \
# --plugin webp-converter-stub \
# output-cn
#
# - name: cn-deploy
# run: |
# mv .git _git
# echo -e "Host gitlab.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
# git config --global user.email "[email protected]"
# git config --global user.name "deploy-bot"
# cd output-cn
# git init
# git remote add origin [email protected]:furrygamesindex/cn-netlify-build.git
# git add .
# git commit -m 'deploy cn website'
# git push -f origin master
# cd ..
# rm -rf output-cn
# mv _git .git
- name: install-frt-rs
run: |
wget https://github.com/FurryGamesIndex/frt-rs/releases/download/_rolling/frt-x86_64-unknown-linux-gnu.gz
gzip -d frt-x86_64-unknown-linux-gnu.gz
mv frt-x86_64-unknown-linux-gnu frt
chmod +x frt
git clone https://github.com/FurryGamesIndex/frt-rs --depth=1
pushd frt-rs
rm -rf demo/www/icons
cp -r ../icons demo/www
popd
- name: next-build-migrate
run: |
pushd frt-rs/demo
../scripts/import-old-gamedb.sh ../../ .
mkdir -p authors
popd
- name: next-build-frt-rs
run: |
pushd frt-rs/demo
../../frt -P profiles/next/profile.toml build && echo "FGI_NEXT_DONE=1" >> "${GITHUB_ENV}"
popd
- name: next-deploy
if: ${{ env.FGI_NEXT_DONE == '1' }}
run: |
mv .git _git
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
git config --global user.email "[email protected]"
git config --global user.name "deploy-bot"
pushd frt-rs/demo/output
git init
git remote add origin [email protected]:FurryGamesIndex/FurryGamesIndex.github.io
git add .
git commit -m 'deploy FGI-next website'
git push -f origin master:next
popd
rm -rf output-next
mv _git .git
- name: sync-mirror
run: |
echo -e "Host gitee.com\n\tStrictHostKeyChecking no\n\tConnectTimeout 5\n" > ~/.ssh/config
git push -f [email protected]:furrygamesindex/games.git master || true
echo -e "Host gitlab.com\n\tStrictHostKeyChecking no\n\tConnectTimeout 5\n" > ~/.ssh/config
git push -f [email protected]:furrygamesindex/games.git master || true
echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n\tConnectTimeout 5\n" > ~/.ssh/config
git push -f [email protected]:furrygamesindex/games.git master || true