Skip to content

Commit

Permalink
Refactor deploy-web.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Feb 10, 2024
1 parent 3d3a513 commit 71b08f6
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Deploy website on push

on: push
name: πŸš€ Deploy website on push

jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3

- name: Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.SERVER_HOST}} # replace with your server
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
server-dir: public_html/ # replace with your server directory
local-dir: ./ # replace with your local directory
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Tearran' }}
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3

- name: πŸ“‚ Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.SERVER_HOST}} # replace with your server
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
server-dir: public_html/ # replace with your server directory
local-dir: ./ # replace with your local directory

0 comments on commit 71b08f6

Please sign in to comment.