Skip to content

Commit af8f544

Browse files
Update pio publish to match PIO PR build (#641)
1 parent 803184c commit af8f544

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/release-to-publish.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,25 @@ jobs:
1212
- uses: actions/checkout@v2
1313
with:
1414
submodules: true
15+
- name: Cache pip
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.cache/pip
19+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
20+
restore-keys: |
21+
${{ runner.os }}-pip-
22+
- name: Cache PlatformIO
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.platformio
26+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
1527
- uses: actions/setup-python@v2
1628
with:
1729
python-version: '3.x'
30+
- name: Install PlatformIO
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install --upgrade platformio
1834
- name: Deploy updated JSON
1935
env:
2036
TRAVIS_BUILD_DIR: ${{ github.workspace }}
@@ -26,7 +42,5 @@ jobs:
2642
curl -L -o package_rp2040_index.json "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/$TAG/package_rp2040_index.json"
2743
./package/update_release.py --token ${CI_GITHUB_API_KEY} --repo "$GITHUB_REPOSITORY" --tag global package_rp2040_index.json
2844
# Upload to Platform.IO
29-
apt-get install -y python3-pip
30-
pip3 install platformio
3145
curl -LO $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/$TAG/rp2040-$TAG.zip
3246
pio package publish rp2040-$TAG.zip --non-interactive

0 commit comments

Comments
 (0)