From 0b6cfeae71df94d8fc1e6cc1210a0973f9632af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 25 Nov 2023 11:21:20 +0100 Subject: [PATCH] test forgejo actions --- .forgejo/workflows/deploy.yml | 13 +++++++++++++ .forgejo/workflows/deploy_test.yml | 14 ++++++++++++++ .forgejo/workflows/deploy_test1.yml | 0 .forgejo/workflows/deploy_test2.yml | 0 4 files changed, 27 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml create mode 100644 .forgejo/workflows/deploy_test.yml create mode 100644 .forgejo/workflows/deploy_test1.yml create mode 100644 .forgejo/workflows/deploy_test2.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..f39dcfa --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,13 @@ +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:~/${{ github.event.inputs.web_root_directory }}/wp-content/plugins/activitypub-event-transformers diff --git a/.forgejo/workflows/deploy_test.yml b/.forgejo/workflows/deploy_test.yml new file mode 100644 index 0000000..66d7b53 --- /dev/null +++ b/.forgejo/workflows/deploy_test.yml @@ -0,0 +1,14 @@ +# .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-job diff --git a/.forgejo/workflows/deploy_test1.yml b/.forgejo/workflows/deploy_test1.yml new file mode 100644 index 0000000..e69de29 diff --git a/.forgejo/workflows/deploy_test2.yml b/.forgejo/workflows/deploy_test2.yml new file mode 100644 index 0000000..e69de29