diff --git a/.github/workflows/zoomin-publish-dev.yml b/.github/workflows/zoomin-publish-dev.yml new file mode 100644 index 0000000..f7d1c15 --- /dev/null +++ b/.github/workflows/zoomin-publish-dev.yml @@ -0,0 +1,39 @@ +name: Publish documentation to Zoomin dev + +on: + push: + branches: + - main + paths: + - doc/docs + workflow_dispatch: + +jobs: + create-zoomin-bundle: + name: Create Zoomin bundle + uses: './.github/workflows/zoomin.yml' + publish-zoomin-bundle: + name: Publish Zoomin bundle to dev + needs: create-zoomin-bundle + runs-on: ubuntu-latest + steps: + - name: Get bundle + uses: actions/download-artifact@v3 + with: + name: nrf-connect-rssi-viewer + - name: Upload documentation + run: | + # trust server + mkdir -p ~/.ssh + ssh-keyscan upload-v1.zoominsoftware.io >> ~/.ssh/known_hosts + + # prepare key + echo "${{ secrets.ZOOMIN_KEY }}" > zoomin_key + chmod 600 zoomin_key + + # upload bundle: + sftp -v -i zoomin_key nordic@upload-v1.zoominsoftware.io <> ~/.ssh/known_hosts + + # prepare key + echo "${{ secrets.ZOOMIN_KEY }}" > zoomin_key + chmod 600 zoomin_key + + # upload bundle: + sftp -v -i zoomin_key nordic@upload-v1.zoominsoftware.io <