Skip to content

Commit

Permalink
Merge pull request #29 from dynamiccookies/test
Browse files Browse the repository at this point in the history
Release v0.2.1
  • Loading branch information
dynamiccookies authored Jul 6, 2024
2 parents fce575c + 1f83d5c commit e484358
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 56 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ on:
pull_request:
branches:
- main
- test
- dev
types:
- closed
push:
branches:
- dev
workflow_dispatch:
branches:
- main
- test
- dev
name: 🚀 Deploy website based on branch
jobs:
web-deploy:
Expand All @@ -31,14 +36,26 @@ jobs:
password: ${{ secrets.PROD_FTP_PASSWORD }}
server-dir: /

- name: 📂 Sync files to TEST
if: contains(github.ref, 'refs/heads/test') || (github.event_name == 'pull_request' && contains(github.base_ref, 'test'))
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.TEST_FTP_SERVER }}
username: ${{ secrets.TEST_FTP_USERNAME }}
password: ${{ secrets.TEST_FTP_PASSWORD }}
server-dir: /test/
exclude: |
LICENSE
README.md
- name: 📂 Sync files to DEV
if: contains(github.ref, 'refs/heads/dev')
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.DEV_FTP_SERVER }}
username: ${{ secrets.DEV_FTP_USERNAME }}
password: ${{ secrets.DEV_FTP_PASSWORD }}
server-dir: /
server-dir: /dev/
exclude: |
LICENSE
README.md
Loading

0 comments on commit e484358

Please sign in to comment.