-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (34 loc) · 1.07 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
name: Zip and Send
on:
push:
branches:
- zipAndSend
jobs:
zip-and-upload:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout sources
uses: nordicbuilder/action-checkout-west-update@main
with:
git-fetch-depth: 0
path: workspace/nrf
- name: Create tar
run: >
tar -C ./workspace -cvf src.tar.gz .
- name: Set up JFrog CLI
uses: jfrog/setup-jfrog-cli@v4
- name: Configure and Upload to Artifactory
env:
ARTIFACTORY_URL: https://eu.files.nordicsemi.com/artifactory
REPOSITORY: ncs-src-mirror
FILE_PATH: src.tar.gz
TARGET_PATH: __${{ github.ref_name }}/
run: >
jfrog rt c add --interactive=false --url=$ARTIFACTORY_URL
--user=${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
--password=${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }} &&
jfrog rt u $FILE_PATH $REPOSITORY/$TARGET_PATH