Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 2, 2024
1 parent 78e27c5 commit 3b309da
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
uses: esphome/[email protected]
with:
yaml-file: firmware/config.yaml
release-summary: "Test"
release-summary: "Test" #TODO: change this to the commit message
complete-manifest: true
release-url: "https://raw.githubusercontent.com/spuder/OpenSpool/main/firmware/manifest.json"

- name: List output files
run: |
Expand All @@ -34,12 +35,13 @@ jobs:
cp openspool-esp32s2/manifest.json firmware/manifest.json
- name: Commit manifest file
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add firmware/manifest.json
git commit -m "Update manifest.json" || echo "No changes to commit"
git push
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Action
author_email: github-actions[bot]@users.noreply.github.com
message: Update manifest.json
add: "firmware/manifest.json"
push: true

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand All @@ -49,15 +51,6 @@ jobs:
openspool-esp32s2/*.bin
openspool-esp32s2/manifest.json
retention-days: 90

- name: Store Latest Commit Indefinitely
uses: actions/upload-artifact@v4
with:
name: openspool-esp32s2-latest
path: |
openspool-esp32s2/*.bin
openspool-esp32s2/manifest.json
cleanup:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3b309da

Please sign in to comment.