Adding new find_nearby flag descriptions #52
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: deploy-website | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '.git**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: "${{ secrets.SSH_PRIVATE_KEY }}" | |
name: id_rsa | |
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | |
- name: Checkout website | |
uses: actions/checkout@master | |
with: | |
path: exult-web-master | |
- name: Upload and update website | |
shell: bash | |
run: | | |
cd $GITHUB_WORKSPACE | |
zip -9 master.zip -r exult-web-master | |
scp -i ~/.ssh/id_rsa master.zip ${{ secrets.SCP_HOST }}:${{ secrets.PROJECT_HOME }} | |
ssh -i ~/.ssh/id_rsa ${{ secrets.SSH_HOST }} create | |
ssh -t -i ~/.ssh/id_rsa ${{ secrets.SSH_HOST }} "cd ${{ secrets.PROJECT_HOME }}; ./update.sh" | |
ssh -i ~/.ssh/id_rsa ${{ secrets.SSH_HOST }} shutdown |