Skip to content

Commit

Permalink
version 241027
Browse files Browse the repository at this point in the history
it all starts now
  • Loading branch information
luka6000 committed Oct 27, 2024
0 parents commit bd5afe6
Show file tree
Hide file tree
Showing 20 changed files with 2,893 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
ci:
name: Building ${{ matrix.file }} / ${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
file:
- tagtuner-atom-grove.yaml
esphome-version:
- stable
- beta
- dev
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: ESPHome ${{ matrix.esphome-version }}
uses: esphome/[email protected]
with:
yaml-file: ${{ matrix.file }}.yaml
version: ${{ matrix.esphome-version }}
- name: ESPHome ${{ matrix.esphome-version }} Factory
uses: esphome/[email protected]
with:
yaml-file: ${{ matrix.file }}.factory.yaml
version: ${{ matrix.esphome-version }}
84 changes: 84 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Publish

on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
description: 'The version of the firmware to build'
required: true
release:
types: [published]

jobs:
build-firmware:
name: Build Firmware
uses: esphome/workflows/.github/workflows/build.yml@main
with:
files: |
tagtuner-atom-grove.factory.yaml
esphome-version: 2024.10.2
combined-name: firmware
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }}
release-url: ${{ github.event_name == 'release' && github.event.release.html_url || '' }}
release-version: ${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'workflow_dispatch' && inputs.version) || '' }}

build-site:
name: Build Site
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: Build
uses: actions/[email protected]
with:
source: ./static
destination: ./output
- name: Upload
uses: actions/[email protected]
with:
name: site
path: output

publish:
name: Publish to GitHub Pages
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
runs-on: ubuntu-latest
needs:
- build-firmware
- build-site
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/[email protected]
with:
name: firmware
path: firmware

- name: Copy firmware and manifest
run: |-
mkdir -p output/firmware
cp -r firmware/${{ needs.build-firmware.outputs.version }}/* output/firmware/
- uses: actions/[email protected]
with:
name: site
path: output

- uses: actions/[email protected]
with:
path: output
retention-days: 1

- name: Setup Pages
uses: actions/[email protected]

- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
.DS_Store
/.esphome/
/secrets.yaml
__pycache__
tagtunerdev.yaml
tagtunerdev1.yaml
tagtunerdev2.yaml
tagtunerdev3.yaml
Binary file added 3d models/TagTunerAtomEchoGroveBase.stl
Binary file not shown.
Binary file added 3d models/TagTunerAtomEchoGrovePlate.stl
Binary file not shown.
Binary file added 3d models/TagTunerRecordCard.stl
Binary file not shown.
Binary file added 3d models/TagTunerVolumeKnob.stl
Binary file not shown.
Loading

0 comments on commit bd5afe6

Please sign in to comment.