-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1.01 KB
/
devl-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI/CD Workflow-devl
on:
push:
branches:
- next
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: next
- name: Node and Hugo versions
run: |
node --version
hugo version
- name: Install dependencies and build
run: |
npm install
node create_md_files/createMdFile.js && hugo --cacheDir /tmp/hugo_cache_ubh
- name: Archive build artifacts
run: |
tar -czvf devl-unblock.health_dist.tar.gz public
- name: Copy build artifacts to the production server
run: |
scp -P522 -o StrictHostKeyChecking=no devl-unblock.health_dist.tar.gz "${{ secrets.DEVELOPMENT_USER }}@${{ secrets.DEVELOPMENT_SERVER_IP }}:"
ssh -p522 -o StrictHostKeyChecking=no -t ${{ secrets.DEVELOPMENT_USER }}@${{ secrets.DEVELOPMENT_SERVER_IP }} "bash -i update-devl-unblock-health-com.sh"