Skip to content

Commit

Permalink
Add upload component CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hayschan committed May 25, 2024
1 parent 29dd7ac commit 5c253a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
@@ -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 }}
9 changes: 5 additions & 4 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -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 <blog@haysc.tech>"
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"

0 comments on commit 5c253a5

Please sign in to comment.