mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-07-27 19:56:13 +00:00
Update ci.yml
This commit is contained in:
@@ -5,6 +5,8 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '*.yaml'
|
- '*.yaml'
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||||
@@ -38,9 +40,14 @@ jobs:
|
|||||||
- dev
|
- dev
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4
|
||||||
- name: ESPHome ${{ matrix.esphome-version }}
|
- name: ESPHome ${{ matrix.esphome-version }}
|
||||||
uses: esphome/build-action@v4.0.3
|
uses: esphome/build-action@v7
|
||||||
with:
|
with:
|
||||||
yaml-file: ${{ matrix.file }}.yaml
|
yaml-file: ${{ matrix.file }}.yaml
|
||||||
version: ${{ matrix.esphome-version }}
|
version: ${{ matrix.esphome-version }}
|
||||||
|
- name: ESPHome ${{ matrix.esphome-version }} Factory
|
||||||
|
uses: esphome/build-action@v7
|
||||||
|
with:
|
||||||
|
yaml-file: ${{ matrix.file }}.factory.yaml
|
||||||
|
version: ${{ matrix.esphome-version }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
build-firmware:
|
build-firmware:
|
||||||
name: Build Firmware
|
name: Build Firmware
|
||||||
uses: esphome/workflows/.github/workflows/build.yml@2024.12.0
|
uses: esphome/workflows/.github/workflows/build.yml@2025.7.0
|
||||||
with:
|
with:
|
||||||
#### Modify below here to match your project ####
|
#### Modify below here to match your project ####
|
||||||
files: |
|
files: |
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
athom-smart-plug.yaml
|
athom-smart-plug.yaml
|
||||||
athom-zigbee-gateway.yaml
|
athom-zigbee-gateway.yaml
|
||||||
athom-presence-sensor-v3.yaml
|
athom-presence-sensor-v3.yaml
|
||||||
esphome-version: 2024.10.3
|
esphome-version: 2025.7.0
|
||||||
combined-name: Athom-ESP32-Device
|
combined-name: Athom-ESP32-Device
|
||||||
#### Modify above here to match your project ####
|
#### Modify above here to match your project ####
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
upload-to-release:
|
upload-to-release:
|
||||||
name: Upload to Release
|
name: Upload to Release
|
||||||
uses: esphome/workflows/.github/workflows/upload-to-gh-release.yml@2024.12.0
|
uses: esphome/workflows/.github/workflows/upload-to-gh-release.yml@2025.7.0
|
||||||
needs:
|
needs:
|
||||||
- build-firmware
|
- build-firmware
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -28,25 +28,25 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: mkdir -p output/firmware
|
- run: mkdir -p output/firmware
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions/jekyll-build-pages@v1.0.13
|
uses: actions/jekyll-build-pages@v1
|
||||||
with:
|
with:
|
||||||
source: ./static
|
source: ./static
|
||||||
destination: ./output
|
destination: ./output
|
||||||
|
|
||||||
- name: Fetch firmware files
|
- name: Fetch firmware files
|
||||||
uses: robinraju/release-downloader@v1.11
|
uses: robinraju/release-downloader@v1
|
||||||
with:
|
with:
|
||||||
latest: true
|
latest: true
|
||||||
fileName: '*'
|
fileName: '*'
|
||||||
out-file-path: output/firmware
|
out-file-path: output/firmware
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3.0.1
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: output
|
path: output
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
@@ -65,8 +65,8 @@ jobs:
|
|||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5.0.0
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4.0.5
|
uses: actions/deploy-pages@v4
|
||||||
Reference in New Issue
Block a user