-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub Actions
committed
Feb 10, 2024
1 parent
3d3a513
commit 71b08f6
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
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
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 |