mirror of
https://github.com/WerySkok/weryskok.ru.git
synced 2025-04-26 04:28:56 +03:00
ci: set up action for Zola
This commit is contained in:
parent
d56958d61f
commit
e6571c6c8a
1 changed files with 30 additions and 42 deletions
72
.github/workflows/build_and_deploy.yml
vendored
72
.github/workflows/build_and_deploy.yml
vendored
|
@ -1,43 +1,31 @@
|
||||||
# name: 🚀 Build and deploy website on push
|
# name: 🚀 Build and deploy website on push
|
||||||
# on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - main
|
- main
|
||||||
# jobs:
|
jobs:
|
||||||
# web-deploy:
|
web-deploy:
|
||||||
# name: 🎉 Deploy
|
name: 🎉 Deploy
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: 🚚 Get latest code
|
- name: 🚚 Get latest code
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
# - name: 📦 Use cache
|
- name: 🛠️ Setup Zola
|
||||||
# uses: actions/cache@v2
|
uses: taiki-e/install-action@v2
|
||||||
# with:
|
with:
|
||||||
# path: vendor/bundle
|
tool: zola@0.19.1
|
||||||
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
|
- name: 🏗️ Build website with Jekyll
|
||||||
# restore-keys: |
|
run: zola build
|
||||||
# ${{ runner.os }}-gems-
|
- name: 📂 Sync files
|
||||||
# - name: 🔧 Setup Node.js
|
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
||||||
# uses: actions/setup-node@v3
|
with:
|
||||||
# with:
|
server: ${{ secrets.FTP_WEB_SERVER }}
|
||||||
# node-version: 16
|
username: ${{ secrets.FTP_USER_NAME }}
|
||||||
# - name: 🛠️ Setup Ruby
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
# uses: ruby/setup-ruby@v1
|
local-dir: ./public/
|
||||||
# with:
|
server-dir: /www/weryskok.ru/
|
||||||
# ruby-version: '3.0'
|
exclude: |
|
||||||
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
**/.git*
|
||||||
# - name: 🏗️ Build website with Jekyll
|
**/.git*/**
|
||||||
# run: JEKYLL_ENV=production bundle exec jekyll build
|
**/node_modules/**
|
||||||
# - name: 📂 Sync files
|
**/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: ./_site/
|
|
||||||
# server-dir: /www/weryskok.ru/
|
|
||||||
# exclude: |
|
|
||||||
# **/.git*
|
|
||||||
# **/.git*/**
|
|
||||||
# **/node_modules/**
|
|
||||||
# **/files/**
|
|
||||||
|
|
Loading…
Reference in a new issue