wordpress-event-bridge-for-.../.forgejo/workflows/deploy.yml

26 lines
698 B
YAML
Raw Normal View History

2023-11-25 11:31:04 +01:00
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 13:41:38 +01:00
if: secrets.SSH_PRIVATE_KEY != ''
2023-11-25 11:21:20 +01:00
steps:
2023-11-25 13:41:38 +01:00
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
2023-11-25 15:21:14 +01:00
- name: Deploy
uses: appleboy/scp-action@v0.1.4
2023-11-25 13:41:38 +01:00
with:
2023-11-25 15:21:14 +01:00
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "activitypub-event-transformers.php"
target: ~/wordpress-test.event-federation.eu/wp-content/plugins/activitypub-event-transformers