Skip to content

Commit

Permalink
publish to pages actions
Browse files Browse the repository at this point in the history
  • Loading branch information
oseiler2 committed Jun 23, 2023
1 parent b0ab068 commit df3635a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 14 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,22 @@ jobs:
pip install --upgrade esptool
- name: Build esp32-debug
run: pio run --environment esp32-debug
run: |
echo "building esp32-debug"
pio run --environment esp32-debug
- name: Build esp32-s3-debug
run: pio run --environment esp32-s3-debug
run: |
echo "building esp32-s3-debug"
pio run --environment esp32-s3-debug
- name: Rename & move files
run: |
mv .pio/build/esp32-debug/firmware.bin firmware-esp32-debug.bin
mv .pio/build/esp32-debug/firmware-combined.bin firmware-combined-esp32-debug.bin
mv .pio/build/esp32-s3-debug/firmware.bin firmware-esp32-s3-debug.bin
mv .pio/build/esp32-s3-debug/firmware-combined.bin firmware-combined-esp32-s3-debug.bin
mkdir -p build
mv .pio/build/esp32-debug/firmware.bin build/firmware-esp32-debug.bin
mv .pio/build/esp32-debug/firmware-combined.bin build/firmware-combined-esp32-debug.bin
mv .pio/build/esp32-s3-debug/firmware.bin build/firmware-esp32-s3-debug.bin
mv .pio/build/esp32-s3-debug/firmware-combined.bin build/firmware-combined-esp32-s3-debug.bin
- name: "Build"
run: |
Expand All @@ -62,4 +68,17 @@ jobs:
prerelease: true
title: "Development Build"
files: |
firmware-*.bin
build/firmware-*.bin
- name: Remove non-combined binaries
run: |
rm build/firmware-esp32-debug.bin
rm build/firmware-esp32-s3-debug.bin
- name: Publish to doc/pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: docs
target-folder: build
clean: false
32 changes: 25 additions & 7 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,21 @@ jobs:
pip install --upgrade esptool
- name: Build esp32
run: pio run --environment esp32
run: |
echo "building esp32"
pio run --environment esp32
- name: Build esp32-s3
run: pio run --environment esp32-s3
run: |
echo "building esp32-s3"
pio run --environment esp32-s3
- name: Rename & move files
run: |
mv .pio/build/esp32/firmware.bin firmware-esp32.bin
mv .pio/build/esp32/firmware-combined.bin firmware-combined-esp32.bin
mv .pio/build/esp32-s3/firmware.bin firmware-esp32-s3.bin
mv .pio/build/esp32-s3/firmware-combined.bin firmware-combined-esp32-s3.bin
mkdir -p build
mv .pio/build/esp32/firmware.bin build/firmware-esp32.bin
mv .pio/build/esp32/firmware-combined.bin build/firmware-combined-esp32.bin
mv .pio/build/esp32-s3/firmware.bin build/firmware-esp32-s3.bin
mv .pio/build/esp32-s3/firmware-combined.bin build/firmware-combined-esp32-s3.bin
- name: "Build"
run: |
Expand All @@ -60,4 +65,17 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
firmware-*.bin
build/firmware-*.bin
- name: Remove non-combined binaries
run: |
rm build/firmware-esp32.bin
rm build/firmware-esp32-s3.bin
- name: Publish to doc/pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: docs
target-folder: build
clean: false

0 comments on commit df3635a

Please sign in to comment.