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