~repos /website

#astro#js#html#css

git clone https://pyrossh.dev/repos/website.git

木 Personal website of pyrossh. Built with astrojs, shiki, vite.


2cc83448 Peter John

1 year ago
add pages
Files changed (2) hide show
  1. .build.yml +0 -18
  2. package.json +1 -0
.build.yml DELETED
@@ -1,18 +0,0 @@
1
- image: debian/stable
2
- oauth: pages.sr.ht/PAGES:RW
3
- packages:
4
- - nodejs
5
- - npm
6
- environment:
7
- site: pyrossh.srht.site
8
- npm_config_progress: "false"
9
- tasks:
10
- - install: |
11
- cd $site
12
- npm install
13
- - package: |
14
- cd $site
15
- npm run build
16
- tar -C build -cvz . > ../site.tar.gz
17
- - upload: |
18
- acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
package.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "dev": "vite dev",
8
8
  "build": "vite build",
9
9
  "preview": "vite preview",
10
+ "publish": "tar -C build -cvz . > site.tar.gz && hut pages publish -d pyrossh.dev site.tar.gz",
10
11
  "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
11
12
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
12
13
  "test": "npm run test:integration && npm run test:unit",