Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
paths:
- 'src/**'
- 'pages/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/deploy-pages.yml'
workflow_dispatch:

jobs:
deploy:
uses: WJSoftware/cicd/.github/workflows/build-and-deploy-pages.yml@main
with:
project_folder: ./pages
output_folder: build
environment: Production
5 changes: 3 additions & 2 deletions pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a Sveltekit project that is deployed to GH pages.

To use it to test-drive changes in the package itself, link to the built project:
To use it to test-drive changes in the package itself, remove the package and then link to the built project:

```bash
# In the workspace folder (not this, the pages/ folder):
Expand All @@ -13,7 +13,8 @@ Now complete the link:

```bash
# In the pages/ folder:
npm remove @wjfe/async-workers
npm link @wjfe/async-workers
```

If you're not working on the package itself, you may install `@wjfe/async-workers`.
If you're not working on the package itself, just work with the deployed `@wjfe/async-workers` package as per normal.
Loading
Loading