Adding CI deployment job definitions for staging and production servers
This commit is contained in:
22
.gitea/workflows/release.yml
Normal file
22
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Deploy to production webserver
|
||||
run-name: ${{ gitea.actor }} is deploying to production 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.PRODUCTION_SFTP_HOST }}
|
||||
username: ${{ secrets.PRODUCTION_SFTP_USERNAME }}
|
||||
key: ${{ secrets.PRODUCTION_SFTP_PRIVATE_KEY }}
|
||||
source: "www/"
|
||||
target: "~/web/jnf.me/public_html/"
|
||||
strip_components: 1
|
||||
Reference in New Issue
Block a user