actions: test
This commit is contained in:
parent
c8ac60d7d1
commit
2c1bb8f248
2 changed files with 18 additions and 15 deletions
|
@ -1,3 +1,20 @@
|
|||
# .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
|
||||
|
@ -10,4 +27,4 @@ jobs:
|
|||
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:~/${{ github.event.inputs.web_root_directory }}/wp-content/plugins/activitypub-event-transformers
|
||||
run: rsync -r --delete-after $GITHUB_WORKSPACE/ hosting187597@hosting187597.a2f96.netcup.net:~/${{ inputs.wordpress_instance }}/wp-content/plugins/activitypub-event-transformers
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# .github/workflows/deploy_wordpress_test1.yml
|
||||
|
||||
name: Deploy to https://wordpress-test.event-federation.eu/
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
web_root_directory:
|
||||
description: wordpress-test.event-federation.eu
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
<<: *deploy
|
Loading…
Reference in a new issue