mirror of
https://github.com/WerySkok/weryskok.ru.git
synced 2025-06-25 19:05:48 +03:00
Another attempt at using Actions
This commit is contained in:
parent
69c6a8e7c3
commit
6b26461e02
1 changed files with 35 additions and 29 deletions
14
.github/workflows/build_and_deploy.yml
vendored
14
.github/workflows/build_and_deploy.yml
vendored
|
@ -17,10 +17,17 @@ jobs:
|
||||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-gems-
|
||||||
- name: 🏗️ Build website
|
- name: 🔧 Setup Node.js
|
||||||
uses: helaili/jekyll-action@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
build_only: true
|
node-version: 16
|
||||||
|
- name: 🛠️ Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.0'
|
||||||
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||||
|
- name: 🏗️ Build website with Jekyll
|
||||||
|
run: JEKYLL_ENV=production bundle exec jekyll build
|
||||||
- name: 📂 Sync files
|
- name: 📂 Sync files
|
||||||
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -35,4 +42,3 @@ jobs:
|
||||||
**/node_modules/**
|
**/node_modules/**
|
||||||
**/files/**
|
**/files/**
|
||||||
dry-run: true
|
dry-run: true
|
||||||
|
|
Loading…
Reference in a new issue