Skip to content

Commit

Permalink
Revert "Revert "docs: website (#50)""
Browse files Browse the repository at this point in the history
This reverts commit ceaa2fb.

# Conflicts:
#	yarn.lock
  • Loading branch information
enisdenjo committed Apr 1, 2023
1 parent f8fd4a5 commit 0e4f4b5
Show file tree
Hide file tree
Showing 54 changed files with 9,508 additions and 5,980 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Algolia

on:
push:
branches:
- master

jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn install --immutable
- name: Sync
run: node website/scripts/algolia-sync.mjs
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
SITE_URL: https://the-guild.dev/graphql/sse
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install
run: yarn install --immutable
- name: Type check
run: yarn type-check
run: yarn workspaces foreach run type-check

test:
name: Test
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Website

on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- website/**

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn install --immutable
- name: Generate documentation
run: yarn gendocs
- name: Deploy
uses: the-guild-org/shared-config/website-cf@main
env:
NEXT_BASE_PATH: ${{ github.ref == 'refs/heads/master' && '/graphql/sse' || '' }}
SITE_URL: ${{ github.ref == 'refs/heads/master' && 'https://the-guild.dev/graphql/sse' || '' }}
with:
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflareAccountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: graphql-sse
prId: ${{ github.event.pull_request.number }}
websiteDirectory: website
buildScript: yarn build
artifactDir: dist
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ dist
.yarn/*
!.yarn/releases
!.yarn/plugins
.next
website/src/pages/docs
website/algolia-lockfile.json
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.yarn
lib
umd
docs
dist
website/src/pages/docs
website/algolia-lockfile.json
CHANGELOG.md
.next
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'

yarnPath: .yarn/releases/yarn-3.5.0.cjs
Loading

0 comments on commit 0e4f4b5

Please sign in to comment.