main: fix state handling in main #113
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
| name: Publish documentation to Zoomin prod | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - docs | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| create-zoomin-bundle: | |
| name: Create Zoomin bundle | |
| uses: './.github/workflows/zoomin.yml' | |
| publish-zoomin-bundle: | |
| name: Publish Zoomin bundle | |
| needs: create-zoomin-bundle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get bundle | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: asset-tracker-template | |
| - 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 [email protected] <<EOF | |
| cd /docs-be.nordicsemi.com/markdown/incoming | |
| put asset-tracker-template.zip | |
| quit | |
| EOF |