Skip to content

Commit 657ccd6

Browse files
committed
feat: create setup to deploy demo to gh-pages
1 parent 938bf14 commit 657ccd6

File tree

7 files changed

+9472
-4245
lines changed

7 files changed

+9472
-4245
lines changed

.github/workflows/demodeploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Demo Deploy
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout 🛎️
10+
uses: actions/[email protected]
11+
12+
- name: Install and Build 🔧
13+
run: |
14+
npm install
15+
npm run build
16+
17+
- name: Deploy 🚀
18+
uses: JamesIves/[email protected]
19+
with:
20+
branch: gh-pages
21+
folder: dist

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
yarn.lock
33
.firebaserc
4+
.vscode
5+
dist

demo/components/demo-element.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class DemoElement extends LitElement {
1111
<header>
1212
<div class="tag-name">&lt;helium-animated-pages&gt;</div>
1313
<a href="./index.html">Docs</a>
14+
<a class="demo" href="https://github.com/alangdm/helium-animated-pages"
15+
>Github</a
16+
>
1417
</header>
1518
<section class="sub-header">
1619
<label for="page-select">Select a Demo</label>
@@ -57,9 +60,8 @@ class DemoElement extends LitElement {
5760
}
5861
/* Header */
5962
header {
60-
display: flex;
61-
align-items: center;
62-
justify-content: space-between;
63+
display: grid;
64+
grid-template-columns: 1fr auto auto;
6365
border-top-left-radius: var(--border-radius);
6466
border-top-right-radius: var(--border-radius);
6567
padding: 0.75rem;

demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<body>
4747
<header>
4848
<a class="demo" href="./demo.html">Demo</a>
49+
<a class="demo" href="https://github.com/alangdm/helium-animated-pages">Github</a>
4950
</header>
5051
<api-docs src="../custom-elements.json"></api-docs>
5152
</body>

0 commit comments

Comments
 (0)