wordpress-activitypub-event.../.forgejo/workflows/deploy.yml

24 lines
680 B
YAML
Raw Normal View History

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
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
- name: Install SSH Key
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- name: Deploy via Rsync
2023-11-25 11:33:22 +01:00
run: rsync -r --delete-after $GITHUB_WORKSPACE/ hosting187597@hosting187597.a2f96.netcup.net:~/wordpress-test.event-federation.eu/wp-content/plugins/activitypub-event-transformers