Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
Merged
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
38 changes: 32 additions & 6 deletions .github/workflows/push-to-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,35 @@ on:

jobs:
push-to-docs:
uses: nevermined-io/reusable-workflows/.github/workflows/push-to-docs.yml@main
with:
path-to-push: docs/architecture/components/catalog
repo-to-push: nvm-docs
branch-to-clone: main
secrets: inherit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '16'
- name: Install dependencies
run: |
yarn install --ignore-engines
yarn run generate-doc
- name: Install envsubst
run: |
sudo apt update
sudo apt install -y gettext
- name: Download push-to-docs script template
run: |
curl -o push-to-docs.sh.template https://raw.githubusercontent.com/nevermined-io/reusable-workflows/main/scripts/push-to-docs.sh
- name: Replace env vars in push-to-docs script
env:
BRANCH_TO_CLONE: main
REPO_TO_PUSH: nvm-docs
PATH_TO_COPY: docs/
PATH_TO_PUSH: docs/architecture/components/catalog
REPOSITORY_NAME: ${{ github.repository }}
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
run: |
export REPOSITORY_NAME=$(echo $REPOSITORY_NAME | awk -F '/' '{print $2}')
envsubst < push-to-docs.sh.template > push-to-docs.sh
env > env.file
chmod +x push-to-docs.sh
./push-to-docs.sh