v3.0.48: Fix removeSourceNode command so that it works for rtmp sourc… #269
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------------------------------------------------- | |
| # Copyright (c) Infiniscene, Inc. All rights reserved. | |
| # Licensed under the MIT License. See License.txt in the project root for license information. | |
| # --------------------------------------------------------------------------------------------- | |
| name: Publish renderer | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v3.* | |
| jobs: | |
| deploy: | |
| concurrency: ci-${{ github.ref }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Build Studio Kit | |
| run: | | |
| npm ci | |
| npm run build | |
| npm run build:renderer | |
| - name: Get Package Version | |
| id: package-version | |
| uses: martinbeentjes/npm-get-version-action@main | |
| - uses: cloudflare/[email protected] | |
| name: Publish Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| apiToken: ${{ secrets.CF_API_TOKEN }} | |
| accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
| workingDirectory: './build/hosted-renderer' | |
| preCommands: | | |
| npm install | |
| postCommands: | | |
| node directory-to-kv.js --prefix version/${{ steps.package-version.outputs.current-version }} --source ../../renderer/dist --destination renderer.json | |
| wrangler kv:bulk put renderer.json --binding=SCENELESS_KV | |
| - uses: cloudflare/[email protected] | |
| name: Publish latest | |
| if: ${{github.ref == 'refs/heads/main' }} | |
| with: | |
| apiToken: ${{ secrets.CF_API_TOKEN }} | |
| accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
| workingDirectory: './build/hosted-renderer' | |
| preCommands: | | |
| npm install | |
| postCommands: | | |
| node directory-to-kv.js --prefix version/latest-v2 --source ../../renderer/dist --destination renderer.json | |
| wrangler kv:bulk put renderer.json --binding=SCENELESS_KV |