-
Notifications
You must be signed in to change notification settings - Fork 93
74 lines (71 loc) · 2.37 KB
/
upload_component.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Push components to Espressif Component Service
on:
# For pull requests: perform upload with "--dry-run" argument,
# i.e. validate that the component passes all checks for being uploaded.
pull_request:
# For pushes to master: actually upload the components to the registry.
push:
branches:
- master
jobs:
upload_components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- run: |
echo "${{ ( github.ref_name != 'master' || github.repository_owner != 'espressif' ) && 'Checking' || 'Uploading' }} components"
- name: Upload components to component service
uses: espressif/upload-components-ci-action@v1
with:
# Please try to keep the directories list sorted.
#
# Do note, however, that if you are updating two components in the same PR
# and one depends on the other, the new version of the 2nd component won't
# be found in the registry when the 1st component is uploaded.
#
# This is only a problem if you are adding two components for the first time,
# or if the 2nd component depends on the exact (new) version of the first one.
#
directories: >
bdc_motor;
catch2;
cbor;
ccomp_timer;
coap;
coremark;
dhara;
eigen;
esp_delta_ota;
esp_encrypted_img;
esp_lcd_qemu_rgb;
esp_jpeg;
esp_serial_slave_link;
expat;
fmt;
freetype;
iqmath;
jsmn;
json_generator;
json_parser;
led_strip;
libsodium;
network_provisioning;
nghttp;
onewire_bus;
pcap;
pid_ctrl;
qrcode;
quirc;
sh2lib;
spi_nand_flash;
supertinycron;
thorvg;
zlib;
libpng;
namespace: "espressif"
# API token will only be available in the master branch in the main repository.
# However, dry-run doesn't require a valid token.
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
dry_run: ${{ github.ref_name != 'master' || github.repository_owner != 'espressif' }}