From e98a42db2ed1f1739afcdfa0a5d4ee3d00b215fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20D=C3=B6ll?= Date: Sat, 2 Nov 2024 20:06:32 +0000 Subject: [PATCH] chore: add github pages --- .github/workflows/publish.yml | 15 +++++++++++++++ examples/index.html | 2 +- package.json | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1b41fc3..eead9b9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/examples/index.html b/examples/index.html index 46ac075..161173e 100644 --- a/examples/index.html +++ b/examples/index.html @@ -2,7 +2,7 @@ example-element examples - +
diff --git a/package.json b/package.json index e656211..3317000 100644 --- a/package.json +++ b/package.json @@ -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",