update docs [deploy] #12
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: push | |
name: π Deploy website on push | |
jobs: | |
web-deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'deploy')" | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: π Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
local-dir: './docs/.vitepress/dist/' | |
server-dir: './' | |
server: ${{ secrets.ftp_server }} | |
username: ${{ secrets.ftp_user }} | |
password: ${{ secrets.ftp_password }} | |
exclude: | | |
**/.git* | |
**/.git*/** | |
**/node_modules/** | |
.idea |