Skip to content

Commit

Permalink
Merge pull request #111 from shawndibble/ftp-action
Browse files Browse the repository at this point in the history
FTP app to site.
  • Loading branch information
shawndibble authored Oct 30, 2023
2 parents 20a6e38 + 7e794a3 commit 7a5f77e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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: /

0 comments on commit 7a5f77e

Please sign in to comment.