Skip to content

update onBeforeShutdown #22

update onBeforeShutdown

update onBeforeShutdown #22

name: Deploy to Colyseus Cloud
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
applicationId: ${{ secrets.APPLICATION_ID }}
token: ${{ secrets.TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Trigger deployment
run: |
npm install -g @colyseus/cloud
npx @colyseus/cloud deploy --applicationId $applicationId --token $token