From ce775266675f6481b927ab1d044d6fad5c779dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Mon, 1 Aug 2022 09:02:31 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..12c1226 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Deploy main to fybx.dev +on: + push: + branches: [ main ] + + workflow_dispatch: + +jobs: + deploy: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Upload to public_html via FTP + uses: SamKirkland/FTP-Deploy-Action@4.3.0 + with: + server: ${{ secrets.FTP_SERV }} + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASS }} + server-dir: ${{ secrets.FTP_PATH }} + protocol: ftps