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

Platform - Deploy

Platform - Deploy #3

Workflow file for this run

name: Platform - Deploy
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup SSH Key
run: |
mkdir -p ./ssh
touch ./ssh/ConnectKey.pem
echo "${{ secrets.AWS_CONNECTION_CERTIFICATE }}" > ./ssh/ConnectKey.pem
chmod 600 ./ssh/ConnectKey.pem
- name: Setup SSH Known Hosts
run: |
mkdir -p ~/.ssh
touch ~/.ssh/known_hosts
echo "${{ secrets.KNOWN_HOSTS }}" > ~/.ssh/known_hosts
- name: Setup Environment File
run: |
touch ./.env
echo "${{ secrets.ENV_FILE }}" > ./.env
chmod 600 ./.env
- name: Change Permissions
run: |
chmod +x ./deploy.sh
- name: Deploy
run: |
./deploy.sh