Subversion Repositories ESP8266_P1_Meter

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 raymond 1
name: Push to PlatformIO registry
2
on:
3
  release:
4
    types: [created]
5
jobs:
6
  build_examples_for_verification:
7
    uses: ./.github/workflows/platformio.yaml
8
  upload_library:
9
    runs-on: ubuntu-latest
10
    needs: [build_examples_for_verification]
11
 
12
    strategy:
13
      matrix:
14
        target:
15
          - name: espidf
16
            library: library.json
17
          - name: esp8266
18
            library: library.json.esp8266
19
 
20
    steps:
21
      - uses: actions/checkout@v6
22
      - uses: actions/setup-python@v4
23
        with:
24
          python-version: '3.9'
25
      - name: Install PlatformIO Core
26
        run: pip install --upgrade platformio
27
 
28
      - name: Copy library.json to root (if not src is also in root)
29
        run: mv ${{ matrix.target.library }} ./library.json || true
30
        if: ${{ matrix.target.library != './library.json' }}
31
 
32
      - name: Publish PlatformIO library
33
        run: pio pkg publish --owner johboh --no-notify --no-interactive
34
        env:
35
          PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}