Skip to content

added downloads json device endpoint #134

added downloads json device endpoint

added downloads json device endpoint #134

Workflow file for this run

name: Deploy to Linode
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository with Emscripten tool
uses: actions/checkout@v4
with:
fetch-depth: 0 # need this to get versioning correct
repository: 'StoneOrbits/VortexEngine'
path: 'VortexEngine'
ref: 'desktop'
# Build Vortex cli tool
- name: Build Vortex CLI Tool
run: |
cd VortexEngine/VortexEngine/VortexCLI
# fetch tags first to ensure versioning is correct
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 latest
./emsdk activate latest
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/[email protected]
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 [email protected]:~/VortexCommunity/public/js/VortexLib.js
scp VortexEngine/VortexEngine/VortexLib/VortexLib.wasm [email protected]:~/VortexCommunity/public/js/VortexLib.wasm
scp VortexEngine/VortexEngine/VortexCLI/vortex [email protected]:~/vortex
ssh [email protected] 'sudo /usr/bin/mv /home/vortex/vortex /usr/local/bin/vortex'
ssh [email protected] 'sudo systemctl stop vortex-community'
ssh [email protected] 'cd /home/vortex/VortexCommunity && git pull && chmod +x start.sh'
ssh [email protected] 'sudo systemctl start vortex-community'