refactor: change SSG to Zola (#1) #14
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
# name: π Build and deploy website on push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
web-deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v2 | |
- name: π οΈ Setup Zola | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: zola@0.19.1 | |
- name: ποΈ Build website with Jekyll | |
run: zola build | |
- name: π Sync files | |
uses: SamKirkland/FTP-Deploy-Action@4.3.0 | |
with: | |
server: ${{ secrets.FTP_WEB_SERVER }} | |
username: ${{ secrets.FTP_USER_NAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: ./public/ | |
server-dir: /www/weryskok.ru/ | |
exclude: | | |
**/.git* | |
**/.git*/** | |
**/node_modules/** | |
**/files/** |