Skip to content

Merge pull request #4447 from Cookiezaurs/master #1371

Merge pull request #4447 from Cookiezaurs/master

Merge pull request #4447 from Cookiezaurs/master #1371

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Deploy
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, next ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
deploy:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Enable command line
shell: bash
run: sudo bash ./bin/scripts/detect.init.sh
- name: Installing dependencies
shell: bash
run: npm install
- name: Deploy server
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: bash ./bin/scripts/deploy.sh
- name: Deploy documentation
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash ./bin/scripts/generateDocs.sh