generated from BrianPugh/python-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (41 loc) · 1.27 KB
/
esp_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: Espressif Component Registry
on:
workflow_dispatch:
pull_request:
push:
tags:
- "v*.*.*"
jobs:
upload_components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install compote
run: |
pip install "idf-component-manager~=1.3"
- name: Copy source into espidf
run: |
# cp README.md espidf/ # TODO: convert main README to md
cp -r tamp/_c_src/* espidf/
- name: Build package
working-directory: ./espidf
run: |
make component
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: esp-idf-component
path: espidf/dist/*.tgz
- name: Publish to ESP Component Registry
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
working-directory: ./espidf
env:
IDF_COMPONENT_API_TOKEN: ${{ secrets.ESP_IDF_COMPONENT_API_TOKEN }}
run: |
compote component upload --namespace=brianpugh --name=tamp --version=git