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:
|
||||
- '*.yaml'
|
||||
- '.github/workflows/ci.yml'
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||
@@ -38,9 +40,14 @@ jobs:
|
||||
- dev
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v4
|
||||
- name: ESPHome ${{ matrix.esphome-version }}
|
||||
uses: esphome/build-action@v4.0.3
|
||||
uses: esphome/build-action@v7
|
||||
with:
|
||||
yaml-file: ${{ matrix.file }}.yaml
|
||||
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:
|
||||
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:
|
||||
#### Modify below here to match your project ####
|
||||
files: |
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
athom-smart-plug.yaml
|
||||
athom-zigbee-gateway.yaml
|
||||
athom-presence-sensor-v3.yaml
|
||||
esphome-version: 2024.10.3
|
||||
esphome-version: 2025.7.0
|
||||
combined-name: Athom-ESP32-Device
|
||||
#### Modify above here to match your project ####
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
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:
|
||||
- build-firmware
|
||||
with:
|
||||
|
||||
@@ -28,25 +28,25 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- run: mkdir -p output/firmware
|
||||
|
||||
- name: Build
|
||||
uses: actions/jekyll-build-pages@v1.0.13
|
||||
uses: actions/jekyll-build-pages@v1
|
||||
with:
|
||||
source: ./static
|
||||
destination: ./output
|
||||
|
||||
- name: Fetch firmware files
|
||||
uses: robinraju/release-downloader@v1.11
|
||||
uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
latest: true
|
||||
fileName: '*'
|
||||
out-file-path: output/firmware
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3.0.1
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: output
|
||||
retention-days: 1
|
||||
@@ -65,8 +65,8 @@ jobs:
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5.0.0
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4.0.5
|
||||
uses: actions/deploy-pages@v4
|
||||
Reference in New Issue
Block a user