From 4381f76d7f1573d1f8dd3d1e4b7de7552b22083b Mon Sep 17 00:00:00 2001 From: Computerboer <58400197+ComputerBoer@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:40:32 +0200 Subject: [PATCH] create github action add github action to autodeploy the api --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..6011593 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Ik ben Henk angular ftp deploy + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - main + +jobs: + web-deploy: + + name: Deploy Angular App + runs-on: ubuntu-latest + + steps: + - name: Get latest code + uses: actions/checkout@v2.3.2 + + - name: Sync Files + uses: SamKirkland/FTP-Deploy-Action@4.0.0 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./PythonAuctionviewer/ + server-dir: ${{ variables.FTP_PYTHON_API_DIRECTORY }} + #dangerous-clean-slate: true + +