Skip to content

Commit f2c5572

Browse files
committed
Meta: fix demo
1 parent 60ab6e9 commit f2c5572

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.github/workflows/demo.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ on:
44
branches:
55
- master
66
jobs:
7-
build-and-deploy:
7+
deploy:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout 🛎️
11-
uses: actions/checkout@v2
10+
- uses: actions/checkout@v2
1211
with:
1312
persist-credentials: false
13+
- run: npm install
14+
- run: npm run build
1415
- run: cd demo && npm install
1516
- run: cd demo && npm run build
16-
- name: Deploy 🚀
17-
uses: JamesIves/github-pages-deploy-action@3.6.1
17+
- run: ls -RF
18+
- uses: peaceiris/actions-gh-pages@v3
1819
with:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
BRANCH: gh-pages
21-
FOLDER: demo
22-
CLEAN: true
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
publish_dir: ./demo/public

demo/package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "svelte-app",
2+
"private": true,
33
"version": "1.0.0",
44
"scripts": {
55
"build": "rollup -c",

demo/public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
<title>`github-url-detection` npm module testing ground</title>
1212

13-
<link rel="stylesheet" href="/global.css" />
14-
<link rel="stylesheet" href="/build/bundle.css" />
13+
<link rel="stylesheet" href="global.css" />
14+
<link rel="stylesheet" href="build/bundle.css" />
1515

16-
<script defer src="/build/bundle.js"></script>
16+
<script defer src="build/bundle.js"></script>
1717
</head>
1818

1919
<body>

demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
return;
2828
}
2929
30-
if (String(detect).startsWith('(url')) {
30+
if (!String(detect).startsWith('()')) {
3131
return {
3232
name,
3333
detect,

0 commit comments

Comments
 (0)