mirror of
https://github.com/WerySkok/weryskok.ru.git
synced 2025-06-25 19:05:48 +03:00
Test GitHub Actions
This commit is contained in:
parent
f750f8233f
commit
69c6a8e7c3
1 changed files with 38 additions and 0 deletions
38
.github/workflows/build_and_deploy.yml
vendored
Normal file
38
.github/workflows/build_and_deploy.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
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: 📦 Use cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: vendor/bundle
|
||||||
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gems-
|
||||||
|
- name: 🏗️ Build website
|
||||||
|
uses: helaili/jekyll-action@v2
|
||||||
|
with:
|
||||||
|
build_only: true
|
||||||
|
- name: 📂 Sync files
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
||||||
|
with:
|
||||||
|
server: ${{ secrets.FTP_WEB_SERVER }}
|
||||||
|
username: ${{ secrets.USER_NAME }}
|
||||||
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
|
local-dir: ./_site/
|
||||||
|
server-dir: www/weryskok.ru/
|
||||||
|
exclude: |
|
||||||
|
**/.git*
|
||||||
|
**/.git*/**
|
||||||
|
**/node_modules/**
|
||||||
|
**/files/**
|
||||||
|
dry-run: true
|
||||||
|
|
Loading…
Reference in a new issue