diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7750722..2a1a299 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - file: copy2esphome/ulanzi-easy.yaml name: Ulanzi-Easy manifest_filename: ulanzi-easy-manifest.json - - file: copy2esphome/ehtmxv2-template + - file: copy2esphome/ehtmxv2-template.yaml name: EHMTX template manifest_filename: ehtmxv2-template-manifest.json fail-fast: false @@ -32,55 +32,3 @@ jobs: with: yaml_file: ${{ matrix.firmware.file }} version: latest - - name: Copy firmware and manifest - run: | - mkdir output - mv ${{ steps.esphome-build.outputs.name }} output/ - jq -s '{"name": "${{ matrix.firmware.name }}", "version": "${{ steps.esphome-build.outputs.esphome-version }}", "home_assistant_domain": "esphome", "new_install_skip_erase": false, "builds":.}' output/${{ steps.esphome-build.outputs.name }}/manifest.json > output/${{ matrix.firmware.manifest_filename }} - - - name: Upload artifact - uses: actions/upload-artifact@v3.1.2 - with: - name: ${{ matrix.firmware.name }} - path: output - - - consolidate: - if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main' - name: Consolidate firmwares - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout source code - uses: actions/checkout@v3 - - name: Download built firmwares - uses: actions/download-artifact@v3 - with: - path: firmwares - - name: Copy files - run: |- - mkdir output - cp -R static/* output/ - cp -R firmwares/*/* output/ - - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v1.0.7 - with: - path: output - - deploy: - if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main' - name: Deploy to GitHub Pages - runs-on: ubuntu-latest - needs: consolidate - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1.2.3