recaptcha fix #196
This file contains hidden or 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: Deploy to Linode | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository with Emscripten tool | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| repository: 'StoneOrbits/VortexEngine' | |
| path: 'VortexEngine' | |
| ref: 'desktop' | |
| # Build Vortex cli tool | |
| - name: Build Vortex CLI Tool | |
| run: | | |
| cd VortexEngine/VortexEngine/VortexCLI | |
| make -j | |
| # Install Emscripten dependencies | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y python3 nodejs cmake | |
| # Install Emscripten | |
| - name: Install Emscripten | |
| run: | | |
| git clone https://github.com/emscripten-core/emsdk.git | |
| cd emsdk | |
| ./emsdk install b363a836e75a245c548b7a6a021822d8c9e4c6df | |
| ./emsdk activate b363a836e75a245c548b7a6a021822d8c9e4c6df | |
| source ./emsdk_env.sh | |
| # Build using Emscripten | |
| - name: Build WebAssembly with Emscripten | |
| run: | | |
| source emsdk/emsdk_env.sh | |
| cd VortexEngine/VortexEngine/VortexLib | |
| make clean | |
| make -j wasm | |
| - name: Setup SSH Agent | |
| uses: webfactory/ssh-agent@v0.5.3 | |
| with: | |
| ssh-private-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Add Linode to known_hosts | |
| run: ssh-keyscan 198.74.48.18 >> ~/.ssh/known_hosts | |
| - name: Deploy to Linode | |
| run: | | |
| scp VortexEngine/VortexEngine/VortexLib/VortexLib.js vortex@198.74.48.18:/home/vortex/VortexCommunity/public/js/VortexLib.js | |
| scp VortexEngine/VortexEngine/VortexLib/VortexLib.wasm vortex@198.74.48.18:/home/vortex/VortexCommunity/public/js/VortexLib.wasm | |
| scp VortexEngine/VortexEngine/VortexCLI/vortex vortex@198.74.48.18:/home/vortex/vortex | |
| ssh vortex@198.74.48.18 'sudo /usr/bin/mv /home/vortex/vortex /usr/local/bin/vortex' | |
| ssh vortex@198.74.48.18 'bash /home/vortex/VortexCommunity/scripts/deploy.sh' |