Skip to content

BUILD - test ci/cd

BUILD - test ci/cd #12

Workflow file for this run

name: Deploy prod-minddaily-frontend
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check if secrets have data
run: |
echo "HOST: ${{ secrets.HOST }}"
echo "PORT: ${{ secrets.PORT }}"
echo "USERNAME: ${{ secrets.USERNAME }}"
echo "KEY: ${{ secrets.KEY }}"
echo "SSH_HOST: ${{ secrets.SSH_HOST }}"
echo "SSH_USER: ${{ secrets.SSH_USER }}"
echo "SSH_KEY: ${{ secrets.SSH_KEY }}"
echo "SSH_PORT: ${{ secrets.SSH_PORT }}"
- uses: actions/checkout@v3
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "."
target: /
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT}}
source: '.'
command_timeout: 10m
script: cd dev-folder;
ls