This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Platform - Deploy #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |