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"