From 7e794a3ec1adfa138e26413a6d50a908094ca5bf Mon Sep 17 00:00:00 2001 From: Shawn Dibble Date: Mon, 30 Oct 2023 18:28:23 -0500 Subject: [PATCH] FTP app to site. --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..2f83606 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,43 @@ +on: + push: + branches: + - master +name: 🚀 Deploy website on push (Master) +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.2 + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: npm install + run: npm install + + - name: npm run build + run: npm run build + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@4.0.0 + with: + server: ${{ secrets.ftp_server}} + username: ${{ secrets.ftp_username }} + password: ${{ secrets.ftp_password }} + server-dir: / \ No newline at end of file