Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/redeploy-on-jammusic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Redeploy on JaMmusic main update

# Fired by a repository_dispatch from JaMmusic when it merges to main, so the
# embedded JaMmusic build (via postinstallJaM) is refreshed. Also runnable by
# hand from the Actions tab (workflow_dispatch).
on:
repository_dispatch:
types: [jammusic-main-deploy]
workflow_dispatch: {}

jobs:
redeploy:
runs-on: ubuntu-latest
steps:
- name: Trigger Heroku build of current main
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
curl -fsS -X POST https://api.heroku.com/apps/webjamsocket/builds \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3" \
-H "Authorization: Bearer $HEROKU_API_KEY" \
-d '{"source_blob":{"url":"https://github.com/WebJamApps/WebJamSocketCluster/tarball/main","version":"main"}}'
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webjamsocketserver",
"description": "Uses latest version of socketcluster-server",
"version": "3.0.1",
"version": "3.0.2",
"license": "MIT",
"type": "module",
"main": "build/src/index.js",
Expand Down