wordpress-event-bridge-for-.../.forgejo/workflows/deploy.yml
2023-11-25 11:31:04 +01:00

30 lines
935 B
YAML

# .github/workflows/deploy_wordpress_test1.yml
name: Deploy to https://wordpress-test.event-federation.eu/
on:
workflow_dispatch:
inputs:
wordpress_instance:
description: The WordPress instance
required: true
default: 'wordpress-test.event-federation.eu'
type: choice
options:
- wordpress-test.event-federation.eu
- wordpress-test1.event-federation.eu
- wordpress-test2.event-federation.eu
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install SSH Key
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- name: Deploy via Rsync
run: rsync -r --delete-after $GITHUB_WORKSPACE/ hosting187597@hosting187597.a2f96.netcup.net:~/${{ inputs.wordpress_instance }}/wp-content/plugins/activitypub-event-transformers