Update staging deployment yaml to use a common SSH key for all deployments to allow more granular access control server-side. Adding production deployment instructions.
22 lines
665 B
YAML
22 lines
665 B
YAML
name: Deploy to staging webserver
|
|
run-name: ${{ gitea.actor }} is deploying to staging environment
|
|
on:
|
|
push:
|
|
branches: [ staging ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Deploy-To-Staging:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Deploy via SFTP
|
|
uses: appleboy/scp-action@master
|
|
with:
|
|
host: ${{ secrets.STAGING_SFTP_HOST }}
|
|
username: ${{ secrets.STAGING_SFTP_USERNAME }}
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
source: "public_html/"
|
|
target: "~/web/jasonwilliamsca.dev.jnf.me/public_html/"
|
|
strip_components: 1 |