Skip to content

Commit

Permalink
Deploy gh pages index page only (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Aug 16, 2024
1 parent c3a0ce0 commit 1ff9ac5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- dev
paths:
- static/**
- .github/workflows/gh-pages.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
path: static
retention-days: 1
- name: Setup Pages
uses: actions/[email protected]
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
3 changes: 2 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</head>

<body>
<esp-web-install-button manifest="./manifest.json"></esp-web-install-button>
<esp-web-install-button
manifest="https://firmware.esphome.io/voice-kit/esphome-voice-kit/manifest.json"></esp-web-install-button>
</body>
<script type="module" src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"></script>

Expand Down

0 comments on commit 1ff9ac5

Please sign in to comment.