Pro issue 1644 #1796
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
on: | |
# Trigger the workflow on pull request. | |
pull_request: | |
types: [ opened, labeled, synchronize ] | |
name: π Deploy website on push | |
jobs: | |
web-deploy: | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
name: π Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v2 | |
- name: π Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp.gyj.ilw.mybluehost.me | |
protocol: ftps | |
server-dir: ${{ github.event.repository.name }}-${{ github.event.pull_request.head.ref }}/ | |
username: ${{ secrets.FRM_FTP_USERNAME }} | |
password: ${{ secrets.FRM_FTP_PASSWORD }} | |
exclude: | | |
**/.* | |
**/.*/** | |
**/.git*/** | |
**/bin/** | |
**/node_modules/** | |
**/scss/** | |
**/tests/** | |
composer.json | |
package.json | |
package-lock.json | |
phpcs.xml | |
phpunit.xml | |
beta-deploy: | |
if: contains(github.event.pull_request.labels.*.name, 'beta deploy') | |
name: π Beta Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v2 | |
- name: π Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp.gyj.ilw.mybluehost.me | |
protocol: ftps | |
server-dir: ${{ github.event.repository.name }}-beta/ | |
username: ${{ secrets.FRM_FTP_USERNAME }} | |
password: ${{ secrets.FRM_FTP_PASSWORD }} | |
exclude: | | |
**/.* | |
**/.*/** | |
**/.git*/** | |
**/bin/** | |
**/node_modules/** | |
**/scss/** | |
**/tests/** | |
composer.json | |
package.json | |
package-lock.json | |
phpcs.xml | |
phpunit.xml |