version: 1.0.{build}

environment:
  ftppassword:
    secure: eK/zCvZEGU6BcRfo1CoYng2sjeywm69Q0JpJoJBdYqA=
    
build_script:
- ps: Pretzel/Pretzel bake site

test: off

artifacts:
- path: site/_site
  name: compiled_site

before_deploy:
- ps: "$ftprequest = [System.Net.FtpWebRequest]::Create('laedit.net:21/httpdocs/readinglist') \n\n$ftprequest.Credentials = New-Object System.Net.NetworkCredential('zlaeditn12713ne', $env:ftppassword) \n\n$ftprequest.Method = [System.Net.WebRequestMethods+Ftp]::DeleteFile \n\n$ftprequest.GetResponse()"

deploy:
- provider: FTP
  host: laedit.net
  protocol: ftp
  username: zlaeditn12713ne
  password:
    secure: eK/zCvZEGU6BcRfo1CoYng2sjeywm69Q0JpJoJBdYqA=
  folder: /httpdocs/readinglist
  application: site\compiled_site.zip
version: 1.0.{build}

environment:
  ftppassword:
    secure: eK/zCvZEGU6BcRfo1CoYng2sjeywm69Q0JpJoJBdYqA=
    
build_script:
- ps: Pretzel/Pretzel bake site

test: off

artifacts:
- path: site/_site
  name: compiled_site

before_deploy:
- ps: "$ftprequest = [System.Net.FtpWebRequest]::Create('ftp://laedit.net:21/httpdocs/readinglist') \n\n$ftprequest.Credentials = New-Object System.Net.NetworkCredential('zlaeditn12713ne', $env:ftppassword) \n\n$ftprequest.Method = [System.Net.WebRequestMethods+Ftp]::DeleteFile \n\n$ftprequest.GetResponse()"

deploy:
- provider: FTP
  host: laedit.net
  protocol: ftp
  username: zlaeditn12713ne
  password:
    secure: eK/zCvZEGU6BcRfo1CoYng2sjeywm69Q0JpJoJBdYqA=
  folder: /httpdocs/readinglist
  application: site\compiled_site.zip
Fix missing protocol in ftp url
Fix missing protocol in ftp url
