From 9217c5be0836e908005301ad2c2d42009e560c0e Mon Sep 17 00:00:00 2001 From: Tomoyuki Sakurai Date: Thu, 10 Oct 2024 14:37:03 +0700 Subject: [PATCH] ci: add a workflow to publish the component to ESP component registry --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ idf_component.yml | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 idf_component.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f935492 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +--- + +name: Push component to https://components.espressif.com +on: + push: + tags: + - v* +jobs: + upload_components: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: "recursive" + - name: Upload component to the component registry + uses: espressif/upload-components-ci-action@b78a19fa5424714997596d3ecffa634aef8ae20b + with: + name: "esp_wireguard" + version: ${{ github.ref_name }} + namespace: "trombik" + api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} diff --git a/idf_component.yml b/idf_component.yml new file mode 100644 index 0000000..b126256 --- /dev/null +++ b/idf_component.yml @@ -0,0 +1,5 @@ +--- +version: "0.9.0" +description: WireGuard Implementation for ESP-IDF +url: https://github.com/trombik/esp_wireguard +license: BSD-3-Clause