forked from dev-base/map
Reworking deployment script
This commit is contained in:
parent
ba5595802b
commit
b0d12ed9b0
14
.github/workflows/build-and-deploy.yml
vendored
14
.github/workflows/build-and-deploy.yml
vendored
|
@ -19,6 +19,20 @@ jobs:
|
||||||
- name: Optimize map
|
- name: Optimize map
|
||||||
uses: thecodingmachine/map-optimizer-action@master
|
uses: thecodingmachine/map-optimizer-action@master
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '14.x'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: "Build scripts"
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: "Move scripts"
|
||||||
|
run: mv dist/* .
|
||||||
|
|
||||||
- name: Bash
|
- name: Bash
|
||||||
run: |
|
run: |
|
||||||
ls -al
|
ls -al
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
/// <reference path="../node_modules/@workadventure/iframe-api-typings/iframe_api.d.ts" />
|
/// <reference path="../node_modules/@workadventure/iframe-api-typings/iframe_api.d.ts" />
|
||||||
|
|
||||||
|
// You can write your WorkAdventure script here, if any.
|
||||||
|
// The "WA" global object is available from anywhere.
|
||||||
|
|
||||||
console.log('Script started successfully');
|
console.log('Script started successfully');
|
||||||
WA.openCoWebSite('https://workadventu.re');
|
WA.openCoWebSite('https://workadventu.re');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const merge = require('webpack-merge');
|
const { merge } = require('webpack-merge');
|
||||||
const common = require('./webpack.config.js');
|
const common = require('./webpack.config.js');
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
|
|
Loading…
Reference in a new issue