fix: docs build (#1203)
39
.github/workflows/docs.deploy.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Deploy Docs to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# Review gh actions docs if you want to further define triggers, paths, etc
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy to GitHub Pages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
cache: yarn
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Build
|
||||||
|
run: yarn workspace @standardnotes/docs run build
|
||||||
|
|
||||||
|
# Popular action to deploy to GitHub Pages:
|
||||||
|
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.CI_PAT_TOKEN }}
|
||||||
|
# Build output to publish to the `gh-pages` branch:
|
||||||
|
publish_dir: ./build
|
||||||
|
# The following lines assign commit authorship to the official
|
||||||
|
# GH-Actions bot for deploys to `gh-pages` branch:
|
||||||
|
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
|
||||||
|
# The GH actions bot is used by default if you didn't specify the two fields.
|
||||||
|
# You can swap them out with your own user credentials.
|
||||||
|
user_name: github-actions[bot]
|
||||||
|
user_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
name: Release Notes
|
|
||||||
description: Runs scripts/changelog-parser for package
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
package:
|
|
||||||
description: Package name
|
|
||||||
required: true
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
result:
|
|
||||||
description: Outputs release notes
|
|
||||||
value: ${{ steps.set.outputs.result }}
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- id: set
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
text: ${{ inputs.text }}
|
|
||||||
run: |
|
|
||||||
RELEASE_NOTES="$(node scripts/changelog-parser.js ${{ inputs.package }})"
|
|
||||||
RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
|
|
||||||
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
|
|
||||||
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
|
|
||||||
echo "::set-output name=result::$RELEASE_NOTES"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Change Log
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
||||||
|
|
||||||
# 0.1.0 (2022-07-04)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* add docs repo ([#1202](https://github.com/standardnotes/app/issues/1202)) ([42dee75](https://github.com/standardnotes/app/commit/42dee7513ea661cd4e9ef8749280591fb168f7c8))
|
|
||||||
@@ -12,8 +12,7 @@
|
|||||||
"packages/*",
|
"packages/*",
|
||||||
"packages/components/src/Packages/Deprecated/*",
|
"packages/components/src/Packages/Deprecated/*",
|
||||||
"packages/components/src/Packages/Editors/*",
|
"packages/components/src/Packages/Editors/*",
|
||||||
"packages/components/src/Packages/Themes/*",
|
"packages/components/src/Packages/Themes/*"
|
||||||
"docs"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/docs",
|
"name": "@standardnotes/docs",
|
||||||
"version": "0.1.0",
|
"version": "0.0.0",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 162 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |