Skip to content

Modified CORS issue in the form #35

Modified CORS issue in the form

Modified CORS issue in the form #35

Workflow file for this run

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"