-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use older version of dendron to make build pass
- Loading branch information
1 parent
c41c67d
commit acd26ed
Showing
1 changed file
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,54 +3,54 @@ name: Build Dendron Static Site | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Delete cache if present | ||
run: "rm -rf .next && rm -rf docs && rm -rf node_modules" | ||
|
||
- name: Install npm dependencies | ||
## Install latest version | ||
# This always publishes with the latest dendron version | ||
# Uncomment the next line, and comment out any other `npm install ...` line | ||
run: npm install @dendronhq/dendron-cli@latest | ||
|
||
## OPTIONALLY: Install specific version | ||
# Available versions: https://www.npmjs.com/package/@dendronhq/dendron-cli | ||
# This example pins to 0.77.0 | ||
# Uncomment the next line, and comment out any other `npm install ...` line | ||
#run: npm install @dendronhq/[email protected] | ||
|
||
## OPTIONALLY: Install dependencies from package-lock.json | ||
# Install version of Dendron from package-lock.json in workspace root | ||
# To use: | ||
# - Remove package-lock.json and package.json from .gitignore | ||
# - Commit package.json and package-lock.json to repository | ||
# - Uncomment the next line, and comment out the other `npm install ...` line | ||
#run: npm install | ||
|
||
- name: Output dependency tree to log | ||
run: cat package*.json | ||
|
||
- name: Initialize or pull nextjs template | ||
run: npx dendron publish init | ||
|
||
- name: Export notes | ||
run: npx dendron publish export --target github --yes | ||
|
||
- name: Deploy site | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: pages | ||
publish_dir: docs/ | ||
force_orphan: true | ||
cname: notes.param.codes | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Delete cache if present | ||
run: "rm -rf .next && rm -rf docs && rm -rf node_modules" | ||
|
||
- name: Install npm dependencies | ||
## Install latest version | ||
# This always publishes with the latest dendron version | ||
# Uncomment the next line, and comment out any other `npm install ...` line | ||
run: npm install @dendronhq/dendron-cli@^0.78.4 | ||
|
||
## OPTIONALLY: Install specific version | ||
# Available versions: https://www.npmjs.com/package/@dendronhq/dendron-cli | ||
# This example pins to 0.77.0 | ||
# Uncomment the next line, and comment out any other `npm install ...` line | ||
#run: npm install @dendronhq/[email protected] | ||
|
||
## OPTIONALLY: Install dependencies from package-lock.json | ||
# Install version of Dendron from package-lock.json in workspace root | ||
# To use: | ||
# - Remove package-lock.json and package.json from .gitignore | ||
# - Commit package.json and package-lock.json to repository | ||
# - Uncomment the next line, and comment out the other `npm install ...` line | ||
#run: npm install | ||
|
||
- name: Output dependency tree to log | ||
run: cat package*.json | ||
|
||
- name: Initialize or pull nextjs template | ||
run: npx dendron publish init | ||
|
||
- name: Export notes | ||
run: npx dendron publish export --target github --yes | ||
|
||
- name: Deploy site | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: pages | ||
publish_dir: docs/ | ||
force_orphan: true | ||
cname: notes.param.codes |