Skip to content

Commit a551457

Browse files
committed
ci(publish): fixed env key issue
1 parent 65a362d commit a551457

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pio_registry_publisher.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1313
runs-on: ubuntu-latest
1414

15+
env:
16+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_ACC_AUTH_KEY }}
17+
1518
steps:
1619
- uses: actions/checkout@v3
1720

@@ -25,12 +28,6 @@ jobs:
2528
python -m pip install --upgrade pip
2629
pip install platformio
2730
28-
- name: Setup PlatformIO authentication
29-
run: |
30-
mkdir -p ~/.platformio
31-
echo "[auth]" > ~/.platformio/auth.ini
32-
echo "token = ${{ secrets.PIO_AUTH_KEY }}" >> ~/.platformio/auth.ini
33-
3431
- name: Publish to PlatformIO Registry
3532
run: |
3633
# First check if library.json exists

0 commit comments

Comments
 (0)