Skip to content

Bump actions/download-artifact from 7 to 8 #78

Bump actions/download-artifact from 7 to 8

Bump actions/download-artifact from 7 to 8 #78

Workflow file for this run

name: CI
on:
# Runs on pushes targeting the default branch
push:
paths-ignore:
- '**.md'
- '/doc/**'
- '/screenshots/**'
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/cache@v5
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build firmware
run: pio run
- name: Merge ESP32 flash files
run: |
cd .pio/build/esp32
python ~/.platformio/packages/tool-esptoolpy/esptool.py --chip esp32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin
- name: Copy firmware
run: |
cp .pio/build/esp32/merged-flash.bin ./.github/pages/esp32.bin
cp .pio/build/esp8266/firmware.bin ./.github/pages/esp8266.bin
- name: Upload firmware artifacts
uses: actions/upload-artifact@v6
with:
name: firmware
path: |
./.github/pages/esp32.bin
./.github/pages/esp8266.bin
- name: Setup Github Page
uses: actions/configure-pages@v5
- name: Upload webflash files
uses: actions/upload-pages-artifact@v4
with:
path: ./.github/pages/
deploy:
needs: build
if: github.ref_type == 'tag'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: write # to upload release artifacts
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
runs-on: ubuntu-latest
steps:
- name: Download firmware artifacts
uses: actions/download-artifact@v8
with:
name: firmware
- name: Upload release artifacts
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: |
./esp8266.bin
./esp32.bin
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4