Skip to content

Commit

Permalink
debug github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-d committed Mar 7, 2020
1 parent 3fd97e3 commit be8ddab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:

- name: Install dependencies
run: |
npm install -g html-minifier
python -m pip install --upgrade pip
pip install platformio
Expand All @@ -35,12 +36,15 @@ jobs:

- name: Make artifacts
run: |
mkdir -p zip
cd .pio/build
mkdir -p ../zip
zip ../zip/wifinfo-$(git describe).zip $(ls */spiffs.bin */firmware.bin)
for i in */spiffs.bin; do mv $i $(dirname $i)/erfs.bin; done
zip ../../zip/wifinfo-$(git describe).zip $(ls */spiffs.bin */firmware.bin)
tools/mkarduinosrc.py -1 arduino.zip
- name: Archive firmware+spiffs
uses: actions/upload-artifact@v1
with:
name: firmware-spiffs
path: .pio/zip/
name: firmware-filesystem-arduino
path: zip/
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:

- name: Build project # This would actually build your project, using zip for an example artifact
run: |
npm install -g html-minifier
python -m pip install --upgrade pip
pip install platformio
platformio run -e esp01s_prod -e esp12e_prod
platformio run -e esp01s_prod -e esp12e_prod -t buildfs
tools/mkarduinosrc.py -1 arduino.zip
cd .pio/build
for i in */spiffs.bin; do echo mv $i mv $(dirname $i)/erfs.bin; done
for i in */spiffs.bin; do mv $i $(dirname $i)/erfs.bin; done
zip --junk-paths ../../esp01_1m.zip esp01s_prod/*.bin
zip --junk-paths ../../esp12e.zip esp12e_prod/*.bin
cd ../..
tools/mkarduinosrc.py arduino.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit be8ddab

Please sign in to comment.