diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..5853796d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +# Automatically deploy the latest changes to the FTP server. +on: + # Triggers the workflow on push events but only for the "master" branch. + push: + branches: [ "master" ] + + # Allows this workflow to be run manually from the Actions tab. + workflow_dispatch: + +name: 🚀 Auto-Deploy +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v2 + + - uses: actions/setup-node@master + + - name: 📥 Install project dependencies + run: npm install + + - name: ⚒️ Build the project + run: npm run build + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@4.3.0 + with: + server: ftp.vircadia.com + username: ${{ secrets.ftp_username }} + password: ${{ secrets.ftp_password }} + local-dir: dist/spa/ + server-dir: / + dry-run: false diff --git a/src/components/overlays/debug/DebugWindow.vue b/src/components/overlays/debug/DebugWindow.vue index 47434435..7661fdee 100644 --- a/src/components/overlays/debug/DebugWindow.vue +++ b/src/components/overlays/debug/DebugWindow.vue @@ -34,13 +34,6 @@ - Switch domain = null; _sceneController : Nullable = null; _sceneManager : Nullable = null; - _currentDomain: DomainName = "Campus"; _currentSceneURL = ""; private _onMyAvatarModelChangedObservable: Observable = new Observable(); private _onEntityEventObservable: Observable = new Observable(); @@ -117,14 +113,6 @@ export class VScene { return this._myAvatarModelURL; } - public get currentDomain(): DomainName { - return this._currentDomain; - } - - public set currentDomain(value: DomainName) { - this._currentDomain = value; - } - public get css3DRenderer(): Nullable { return this._css3DRenderer; } @@ -298,24 +286,6 @@ export class VScene { Log.info(Log.types.ENTITIES, "Load Entities done."); } - public async goToDomain(dest: string): Promise { - Log.info(Log.types.ENTITIES, `Go to domain: ${dest}`); - const domain = dest.toLocaleUpperCase(); - if (domain.includes("campus")) { - await Utility.connectionSetup(CAMPUS_URL); - } else { - await Utility.connectionSetup(SPACE_STATION_URL); - } - } - - public async switchDomain(): Promise { - if (this._currentDomain === "Campus") { - await Utility.connectionSetup(SPACE_STATION_URL); - } else { - await Utility.connectionSetup(CAMPUS_URL); - } - } - /** * Load an avatar model for the current player. * @param modelURL The URL to load the model from.