Merge pull request #3 from lucaslangsch/google-analytics #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy via ftp | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Set up environment variables | |
run: echo "VITE_API_GKEY=${{ secrets.VITE_API_GKEY }}" >> $GITHUB_ENV | |
- name: Build Project | |
run: | | |
npm install | |
npm run build | |
- name: FTP Deploy Locaweb | |
uses: locaweb/ftp-deploy@1.0.0 | |
with: | |
host: ${{ secrets.HOST }} | |
user: ${{ secrets.USER }} | |
password: ${{ secrets.PASS }} | |
localDir: ./dist/ | |
remoteDir: public_html | |
args: -P 21 -e "set ftp:ssl-allow false" --delete |