Skip to content

Commit

Permalink
chore: add github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Nov 2, 2024
1 parent 6183091 commit e98a42d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ jobs:
- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- uses: actions/upload-pages-artifact@v3
with:
path: ./examples
publish-page:
runs-on: ubuntu-latest
needs: publish-npm
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>example-element examples</title>
<link href="https://unpkg.com/primer@latest/build/build.css" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/out.css" rel="stylesheet">
</head>
<body>
<div class="container py-4">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "template-element",
"name": "@htmx/template-element",
"version": "1.0.0",
"description": "A custom element for adding a toolbar to a textarea for markdown editing.",
"repository": "zeiss/template-element",
Expand Down

0 comments on commit e98a42d

Please sign in to comment.