-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (46 loc) · 1.22 KB
/
zip-upload.yml
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
46
47
48
49
50
51
52
53
54
55
name: Zip and Send
# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- zipAndSend
jobs:
zip-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
path: sdk-nrf
fetch-depth: 0
submodules: 'recursive'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install West
run: pip install west
- name: Initialize West
run: |
cd sdk-nrf
west init -l .
- name: West update
run: west update
- name: Debug
run: |
ls
du -sh ./*
ls sdk-nrf
cd ..
echo "workspacefolder"
ls
- name: Create tar.gz
run: |
tar --exclude=".git" --exclude="*.tar.gz" -czf sdk-repository-${{ github.ref_name }}.tar.gz .
- name: Upload to Artifactory
run: |
cd ..
curl -u ${{ secrets.ARTIFACTORY_BURAN_CI_TOKEN }} -T sdk-repository-${{ github.ref_name }}.tar.gz https://eu.files.nordicsemi.com/artifactory/ncs-src-mirror/${{ github.ref_name }}/sdk-repository-${{ github.ref_name }}.tar.gz