Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyv.org - website updates #671

Merged
merged 8 commits into from
Feb 10, 2023
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
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.
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.