-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (41 loc) · 1.05 KB
/
zoomin-publish.yml
File metadata and controls
45 lines (41 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 nordic@upload-v1.zoominsoftware.io <<EOF
cd /docs-be.nordicsemi.com/markdown/incoming
put asset-tracker-template.zip
quit
EOF