diff --git a/.github/workflows/redeploy-on-jammusic.yml b/.github/workflows/redeploy-on-jammusic.yml new file mode 100644 index 0000000..d4b7fe0 --- /dev/null +++ b/.github/workflows/redeploy-on-jammusic.yml @@ -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"}}' diff --git a/package-lock.json b/package-lock.json index ed36f18..dfea157 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webjamsocketserver", - "version": "3.0.1", + "version": "3.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webjamsocketserver", - "version": "3.0.1", + "version": "3.0.2", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 2da798e..4e19d5b 100644 --- a/package.json +++ b/package.json @@ -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",