-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
142 changed files
with
4,946 additions
and
2,785 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 |
---|---|---|
|
@@ -2,15 +2,14 @@ name: cd-docs | |
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'documentation/docs/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: custom-linux | ||
runs-on: ubuntu-20.04-16-core | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Dependencies (Linux) | ||
run: sudo apt-get update && sudo apt-get install -y build-essential curl wget libssl-dev libudev-dev squashfs-tools protobuf-compiler | ||
- name: Install rsync | ||
run: sudo apt-get install rsync | ||
- uses: rlespinasse/[email protected] | ||
|
@@ -26,14 +25,11 @@ jobs: | |
with: | ||
command: build | ||
args: --workspace --release | ||
- name: Install mdbook | ||
run: (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.4.33" mdbook) | ||
- name: Install mdbook plugins | ||
run: | | ||
cargo install --vers "=0.2.2" mdbook-variables && cargo install \ | ||
--vers "^1.8.0" mdbook-admonish && cargo install --vers \ | ||
"^0.1.2" mdbook-last-changed && cargo install --vers "^0.1.2" mdbook-theme \ | ||
&& cargo install --vers "^0.7.7" mdbook-linkcheck | ||
- name: Install mdbook and plugins | ||
run: cd documentation && ./install_mdbook_deps.sh | ||
- name: Remove existing Nym config directory (`~/.nym/`) | ||
run: cd documentation && ./remove_existing_config.sh | ||
continue-on-error: false | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ | ||
run: cd documentation && ./build_all_to_dist.sh | ||
continue-on-error: false | ||
|
@@ -52,6 +48,7 @@ jobs: | |
|
||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
continue-on-error: false | ||
|
||
- name: Pull Vercel Environment Information (preview) | ||
if: github.ref != 'refs/heads/master' | ||
|
@@ -61,15 +58,18 @@ jobs: | |
if: github.ref == 'refs/heads/master' | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
working-directory: dist/docs | ||
continue-on-error: false | ||
|
||
- name: Build Project Artifacts (preview) | ||
if: github.ref != 'refs/heads/master' | ||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
working-directory: dist/docs | ||
continue-on-error: false | ||
- name: Build Project Artifacts (production) | ||
if: github.ref == 'refs/heads/master' | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
working-directory: dist/docs | ||
continue-on-error: false | ||
|
||
- name: Deploy Project Artifacts to Vercel (preview) | ||
if: github.ref != 'refs/heads/master' | ||
|
@@ -79,6 +79,7 @@ jobs: | |
if: github.ref == 'refs/heads/master' | ||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
working-directory: dist/docs | ||
continue-on-error: false | ||
|
||
- name: Matrix - Node Install | ||
run: npm install | ||
|
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 |
---|---|---|
|
@@ -9,9 +9,11 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: custom-linux | ||
runs-on: ubuntu-20.04-16-core | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Dependencies (Linux) | ||
run: sudo apt-get update && sudo apt-get install -y build-essential curl wget libssl-dev libudev-dev squashfs-tools protobuf-compiler | ||
- name: Install rsync | ||
run: sudo apt-get install rsync | ||
- uses: rlespinasse/[email protected] | ||
|
@@ -27,22 +29,15 @@ jobs: | |
with: | ||
command: build | ||
args: --workspace --release | ||
- name: Install mdbook | ||
run: (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.4.35" mdbook) | ||
- name: Install mdbook plugins | ||
run: | | ||
cargo install --vers "=0.2.2" mdbook-variables && cargo install \ | ||
--vers "^1.8.0" mdbook-admonish --force && cargo install --vers \ | ||
"^0.1.2" mdbook-last-changed && cargo install --vers "^0.1.2" mdbook-theme \ | ||
&& cargo install --vers "^0.7.7" mdbook-linkcheck \ | ||
# && cd documentation \ | ||
# && mdbook-admonish install dev-portal \ | ||
# && mdbook-admonish install docs \ | ||
# && mdbook-admonish install operators | ||
- name: Install mdbook and plugins | ||
run: cd documentation && ./install_mdbook_deps.sh | ||
- name: Remove existing Nym config directory (`~/.nym/`) | ||
run: cd documentation && ./remove_existing_config.sh | ||
continue-on-error: false | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ | ||
run: cd documentation && ./build_all_to_dist.sh | ||
run: cd documentation && ./build_all_to_dist.sh | ||
continue-on-error: false | ||
|
||
- name: Deploy branch to CI www | ||
continue-on-error: true | ||
uses: easingthemes/ssh-deploy@main | ||
|
@@ -54,6 +49,7 @@ jobs: | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | ||
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/docs-${{ env.GITHUB_REF_SLUG }} | ||
EXCLUDE: "/node_modules/" | ||
|
||
- name: Matrix - Node Install | ||
run: npm install | ||
working-directory: .github/workflows/support-files | ||
|
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
Oops, something went wrong.