Pushing updated resume and contact information to production, along with automated deployment script and reorganized folder structure. #4
@@ -0,0 +1,22 @@
|
|||||||
|
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.STAGING_SFTP_PRIVATE_KEY }}
|
||||||
|
source: "public_html/"
|
||||||
|
target: "~/web/jasonwilliamsca.dev.jnf.me/public_html/"
|
||||||
|
strip_components: 1
|
||||||
Reference in new issue
Block a user