From a5d2b84e25a401fd86249fcccf671eef4e2d95fe Mon Sep 17 00:00:00 2001 From: Roosa Virta <43202139+ThistleFIN@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:46:29 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6db8326 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Build & deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Deploy + uses: easingthemes/ssh-deploy@v2.2.11 + env: + SSH_PRIVATE_KEY: ${{ secrets.DEPLOYUSER_SSH_KEY }} + REMOTE_HOST: ${{ secrets.DEPLOYUSER_HOST }} + REMOTE_USER: ${{ secrets.DEPLOYUSER_USER }} + REMOTE_PORT: ${{ secrets.DEPLOYUSER_PORT }} + TARGET: "/srv/www/www.asteriski.fi/wp-content/plugins/wp-poytakirjat/" + EXCLUDE: "/.git/" + with: + args: "-avz --delete --chmod=ug=rwx,o=rx --chown=github-deploy:www-data --progress"