-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (46 loc) · 2.01 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
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@v3
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: >
device/esp_tinyusb;
host/class/cdc/esp_modem_usb_dte;
host/class/cdc/usb_host_cdc_acm;
host/class/cdc/usb_host_ch34x_vcp;
host/class/cdc/usb_host_cp210x_vcp;
host/class/cdc/usb_host_ftdi_vcp;
host/class/cdc/usb_host_vcp;
host/class/hid/usb_host_hid;
host/class/msc/usb_host_msc;
host/class/uvc/usb_host_uvc;
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' }}