Skip to content

Commit

Permalink
keyv.org - website updates (#671)
Browse files Browse the repository at this point in the history
* v2

* Update .nvmrc

* updating to mono repo

* updating with the script needed for build

* Update package.json

* updating to root of site

* moving back to packages and workflow deploy

* Update deploy-website.yml
  • Loading branch information
jaredwray authored Feb 10, 2023
1 parent 49f1eee commit 49f937d
Show file tree
Hide file tree
Showing 37 changed files with 60 additions and 7 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy-website

on:
push:
branches: [ main ]

jobs:
setup-build-deploy:
name: Deploy Website
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]

steps:
- name: Checkout
uses: actions/checkout@v3

# Test
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: yarn

- name: Build Website
run: yarn website:build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: b09b24c345713c704e71dea8bd81f713
projectName: keyv
directory: packages/website/dist
gitHubToken: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
"test": "c8 --reporter=lcov yarn workspaces run test:ci",
"test:services:start": "docker-compose -f ./docker-compose.yaml up -d",
"test:services:stop": "docker-compose -f ./docker-compose.yaml down -v",
"website:build": "docula build",
"website:serve": "docula serve",
"website:build": "yarn workspace @keyv/website run build",
"clean": "rm -rf node_modules && rm -rf yarn.lock && yarn workspaces run clean"
},
"dependencies": {
"@types/node": "^18.11.19"
},
"devDependencies": {
"c8": "^7.12.0",
"docula": "^0.0.9"
"c8": "^7.12.0"
}
}
17 changes: 17 additions & 0 deletions packages/website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@keyv/website",
"version": "1.0.0",
"description": "Keyv Website",
"repository": "https://github.com/jaredwray/keyv.git",
"author": "Jared Wray <me@jaredwray.com>",
"license": "MIT",
"private": true,
"scripts": {
"test:ci": "echo 'no tests needed'",
"build": "docula build",
"serve": "docula serve"
},
"devDependencies": {
"docula": "^0.0.9"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@
"received_events_url": "https://api.github.com/users/jaredwray/received_events",
"type": "User",
"site_admin": false,
"contributions": 502
"contributions": 504
},
{
"login": "lukechilds",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion site/config.json → packages/website/site/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"outputPath": "site/dist",
"siteUrl": "https://keyv.org",
"plugins": [
"github",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 49f937d

Please sign in to comment.