2023-11-25 11:31:04 +01:00
|
|
|
# .github/workflows/deploy_wordpress_test1.yml
|
|
|
|
|
|
|
|
name: Deploy to https://wordpress-test.event-federation.eu/
|
|
|
|
|
|
|
|
on:
|
2023-11-25 11:33:22 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-11-25 11:31:04 +01:00
|
|
|
|
2023-11-25 11:21:20 +01:00
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-25 11:43:03 +01:00
|
|
|
if: secrets.SSH_PRIVATE_KEY != ''
|
2023-11-25 11:21:20 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2023-11-25 12:04:26 +01:00
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
2023-11-25 11:21:20 +01:00
|
|
|
|
2023-11-25 12:31:18 +01:00
|
|
|
- name: Install rsync
|
2023-11-25 12:32:13 +01:00
|
|
|
run: apt update && apt install -y rsync
|
2023-11-25 12:31:18 +01:00
|
|
|
|
2023-11-25 12:13:58 +01:00
|
|
|
- name: Deploy via rsync
|
|
|
|
uses: https://github.com/burnett01/rsync-deployments@6.0.0
|
2023-11-25 12:07:13 +01:00
|
|
|
with:
|
2023-11-25 12:13:58 +01:00
|
|
|
switches: -avzr --delete
|
|
|
|
path: ./
|
|
|
|
remote_path: ~/wordpress-test.event-federation.eu/wp-content/plugins/activitypub-event-transformers
|
|
|
|
remote_host: hosting187597.a2f96.netcup.net
|
|
|
|
remote_user: hosting187597
|
|
|
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
|
2023-11-25 11:21:20 +01:00
|
|
|
|