From 2c1bb8f2482ddf5252178d9a4fa165d4c0bcfb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 25 Nov 2023 11:31:04 +0100 Subject: [PATCH] actions: test --- .forgejo/workflows/deploy.yml | 19 ++++++++++++++++++- .forgejo/workflows/deploy_test.yml | 14 -------------- 2 files changed, 18 insertions(+), 15 deletions(-) delete mode 100644 .forgejo/workflows/deploy_test.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index f39dcfa..000579b 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -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 diff --git a/.forgejo/workflows/deploy_test.yml b/.forgejo/workflows/deploy_test.yml deleted file mode 100644 index 04fca76..0000000 --- a/.forgejo/workflows/deploy_test.yml +++ /dev/null @@ -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 \ No newline at end of file