-
Notifications
You must be signed in to change notification settings - Fork 39
41 lines (38 loc) · 1.18 KB
/
Copy pathsrc-mirror.yml
File metadata and controls
41 lines (38 loc) · 1.18 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
name: src-mirror
on:
workflow_dispatch:
inputs:
git-ref:
description: 'Branch, tag or SHA to checkout'
required: true
default: 'main'
push:
tags:
- '*'
pull_request:
types:
- opened
- synchronize
paths:
- .github/workflows/src-mirror.yml
concurrency:
group: src-mirror-${{ github.ref }}
cancel-in-progress: true
# Tar entire project west workspace, prune, and upload to artifact service.
jobs:
standard:
runs-on:
- runs-on=${{ github.run_id }}
- runner=16cpu-linux-x64
steps:
- name: Upload src.tar.gz
uses: nrfconnect/action-src-mirror@main
with:
path: 'ncs-example-application'
west-update-args: ''
artifactory-path: >-
${{ (github.ref_type != 'tag') &&
format('ncs-src-mirror/internal/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) ||
format('ncs-src-mirror/external/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) }}
artifactory-user: ${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
artifactory-pass: ${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}