Update .gitea/workflows/deploy.yml
This commit is contained in:
@@ -1,20 +1,14 @@
|
|||||||
name: Deploy Workshop-Wahlen (DEV / PROD)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: docker.gitea.com/runner-images:ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# DEV
|
|
||||||
- name: Deploy to DEV
|
- name: Deploy to DEV
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/develop'
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
@@ -31,7 +25,6 @@ jobs:
|
|||||||
target: "/dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/"
|
target: "/dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/"
|
||||||
rm: true
|
rm: true
|
||||||
|
|
||||||
# PROD
|
|
||||||
- name: Deploy to PROD
|
- name: Deploy to PROD
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
|||||||
Reference in New Issue
Block a user