Skip to content

Update lang mongodb config #77

Update lang mongodb config

Update lang mongodb config #77

Workflow file for this run

# This workflow generates a new copy of the project documentation
name: Documentation build CI
on:
push:
branches: [ "master" ]
env:
ADAPT_AUTHORING_AUTH__tokenSecret: ${{ secrets.ADAPT_AUTH_TOKEN_SECRET }}
ADAPT_AUTHORING_MONGODB__connectionUri: 'mongodb://0.0.0.0/adapt-authoring'
ADAPT_AUTHORING_SERVER__host: 'localhost'
ADAPT_AUTHORING_SERVER__port: '5678'
ADAPT_AUTHORING_SERVER__url: 'http://localhost:5678'
ADAPT_AUTHORING_SESSIONS__secret: ${{ secrets.ADAPT_SESSIONS_SECRET }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
mongodb-version: [7.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm i
- run: npx at-docgen
- name: Push to documentation repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'APP_DATA/temp/docs-build'
target-directory: 'docs'
destination-github-username: 'adapt-security'
destination-repository-name: 'adapt-authoring-documentation'
user-name: "github-actions[bot]"
target-branch: master