Skip to content

Commit

Permalink
Update CI to only deploy webflasher on tags starting with v*
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkl33t committed May 31, 2024
1 parent 7cf992f commit 62fb43c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,17 @@ jobs:
cd micropython/ports/esp32
python -m esptool --chip esp32s3 -b 460800 merge_bin -o merged-firmware.bin --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 build-tildagon/bootloader/bootloader.bin 0x8000 build-tildagon/partition_table/partition-table.bin 0xd000 build-tildagon/ota_data_initial.bin 0x10000 build-tildagon/micropython.bin
cp merged-firmware.bin $GITHUB_WORKSPACE/flasher/
if: startsWith(github.event.ref, 'refs/tags/v')
- name: Deploy to GitHub Pages
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: ./flasher
if: startsWith(github.event.ref, 'refs/tags/v')
deploy:
if: startsWith(github.event.ref, 'refs/tags/v')
needs: Build-Firmware

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
Expand All @@ -117,4 +120,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 comments on commit 62fb43c

Please sign in to comment.