Rename to cherryusb_esp32 to keep consistency with upstream #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push component to https://components.espressif.com | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
upload_components: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check the repository name | |
run: | | |
if [[ ${{ github.repository }} != "leeebo/cherryusb_esp32" ]]; then | |
echo "This action is only for leeebo/cherryusb_esp32 repository" | |
fi | |
- uses: actions/checkout@v2 | |
if: github.repository == 'leeebo/cherryusb_esp32' | |
with: | |
submodules: "recursive" | |
- name: Upload component to the component registry | |
if: github.repository == 'leeebo/cherryusb_esp32' | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
name: "cherryusb_esp32" | |
namespace: "leeebo" | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} |