add deployment
Some checks failed
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Has been cancelled
Some checks failed
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Has been cancelled
This commit is contained in:
49
.gitea/workflows/deploy.yml
Normal file
49
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
name: Deploy Workshop-Wahlen (DEV / PROD)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# DEV
|
||||||
|
- name: Deploy to DEV
|
||||||
|
if: github.ref == 'refs/heads/develop'
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SFTP_HOST }}
|
||||||
|
port: ${{ secrets.SFTP_PORT }}
|
||||||
|
username: ${{ secrets.SFTP_USER }}
|
||||||
|
password: ${{ secrets.SFTP_PASS }}
|
||||||
|
source: |
|
||||||
|
assets
|
||||||
|
includes
|
||||||
|
*.php
|
||||||
|
README.md
|
||||||
|
target: "/dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/"
|
||||||
|
rm: true
|
||||||
|
|
||||||
|
# PROD
|
||||||
|
- name: Deploy to PROD
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SFTP_HOST }}
|
||||||
|
port: ${{ secrets.SFTP_PORT }}
|
||||||
|
username: ${{ secrets.SFTP_USER }}
|
||||||
|
password: ${{ secrets.SFTP_PASS }}
|
||||||
|
source: |
|
||||||
|
assets
|
||||||
|
includes
|
||||||
|
*.php
|
||||||
|
README.md
|
||||||
|
target: "/httpdocs/wp-content/plugins/konficastle-workshopwahl/"
|
||||||
|
rm: true
|
||||||
Reference in New Issue
Block a user