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

Commit

Permalink
add deployment of branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Sep 11, 2023
1 parent 01d5d1b commit 2327fda
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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:
- name: Print branch name
run: echo "GITHUB_REF_NAME=${GITHUB_REF_NAME}"
- uses: actions/checkout@v3
- 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

0 comments on commit 2327fda

Please sign in to comment.