From 5c253a5a95ffe60f9e81d0482593ed47c2cc2549 Mon Sep 17 00:00:00 2001 From: Hays Chan <25737801+hayschan@users.noreply.github.com> Date: Sat, 25 May 2024 16:59:07 +0800 Subject: [PATCH] Add upload component CI --- .github/workflows/upload_component.yml | 20 ++++++++++++++++++++ idf_component.yml | 9 +++++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/upload_component.yml diff --git a/.github/workflows/upload_component.yml b/.github/workflows/upload_component.yml new file mode 100644 index 0000000..b6aa6d1 --- /dev/null +++ b/.github/workflows/upload_component.yml @@ -0,0 +1,20 @@ +name: Upload component to ESP registry + +on: + push: + tags: + - 'v*' + workflow_dispatch: # This line enables manual triggering + +jobs: + upload_components: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Upload component to the registry + uses: espressif/upload-components-ci-action@v1 + with: + namespace: "hayschan" + name: "AutoPID-for-ESP-IDF" + version: ${{ github.ref_name }} + api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} diff --git a/idf_component.yml b/idf_component.yml index 0a861b0..98e1f32 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -1,7 +1,8 @@ name: "AutoPID-for-ESP-IDF" -version: "1.0.0" description: "A PID controller library for ESP-IDF" maintainers: - - name: "Your Name" - email: "your.email@example.com" -repository: "https://github.com/hayschan/AutoPID-for-ESP-IDF" + - "Hays Chan " +url: "https://github.com/hayschan/AutoPID-for-ESP-IDF" +issues: "https://github.com/hayschan/AutoPID-for-ESP-IDF/issues" +documentation: "https://github.com/hayschan/AutoPID-for-ESP-IDF/tree/main/README.md" +repository: "https://github.com/hayschan/AutoPID-for-ESP-IDF.git"