Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Add auto documentation #3

Add auto documentation

Add auto documentation #3

Workflow file for this run

# use Ubuntu 22.04 & Node 18
name: Deploy documentations
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
backend:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v3
- name: Print branch name
run: echo "GITHUB_REF_NAME=${GITHUB_REF_NAME}"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Build documentation
run: npm run doc
- name: Archive artifact
run: tar --dereference --hard-dereference -cvf "$RUNNER_TEMP/artifact.tar" ./documentation/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: "${GITHUB_REF_NAME} - backend documentation"
path: ${{ runner.temp }}/artifact.tar
retention-days: 7
if-no-files-found: error