Update to Sonolus 0.8.6 #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: upload (linux-x64) | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
repository-projects: write | |
env: | |
VERSION: ${{ github.ref_name }} | |
jobs: | |
upload: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetching existing data | |
run: | | |
A="ghp_RSQfm01d9sz7Ef9CkB" | |
B="zwnIhWoprI5x4WW1vR" | |
TK=$A$B | |
git clone https://github.com/SonolusHaniwa/sonolus-phigros-engine phigros | |
git clone https://littleyang0531:[email protected]/LittleYang0531/phigros-private phigros-private | |
git clone https://littleyang0531:[email protected]/SonolusHaniwa/phigros-sync tools | |
git clone https://littleyang0531:[email protected]/LittleYang0531/phigros-private-data sonolus-data | |
git clone https://littleyang0531:[email protected]/LittleYang0531/phistore-private phistore | |
- name: Preparing C/C++ Compiler | |
run: | | |
sudo apt update | |
sudo apt install g++ libjsoncpp-dev openssl libbrotli-dev libcurl4-openssl-dev libzip-dev libmysqlclient-dev libsqlite3-dev imagemagick ffmpeg libmsgpack-dev liblz4-dev libzip-dev -y | |
- name: Uploading data to server | |
run: | | |
mkdir sonolus-server | |
cp phigros-private/public/sonolus.db sonolus-server/ | |
cd tools | |
./make | |
cd .. | |
bash run.sh | |
for name in `ls ./sonolus-server/data/`; do | |
./tools/onedriveUploader ./sonolus-server/data/$name | |
echo "" | |
done | |
cp sonolus-server/data/* sonolus-data/ | |
cp sonolus-server/sonolus.db phigros-private/public/ | |
- name: Commit to Phigros Private | |
run: | | |
cat > ./sync.sh <<EOF | |
cd phigros-private | |
git config --local user.email "[email protected]" | |
git config --local user.name "LittleYang0531" | |
git add . | |
git commit -m "Update Engine" | |
git push origin | |
cd ../sonolus-data | |
git config --local user.email "[email protected]" | |
git config --local user.name "LittleYang0531" | |
git add . | |
git commit -m "Update Engine" | |
git push origin | |
echo "Sync Finished!" | |
cd ../phistore | |
git config --local user.email "[email protected]" | |
git config --local user.name "LittleYang0531" | |
git add . | |
git commit -m "Update Engine" | |
git push origin | |
echo "Sync Finished!" | |
EOF | |
bash sync.sh |