mirror of
https://github.com/WerySkok/weryskok.ru.git
synced 2025-06-25 10:55: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') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gems-
|
||||
- name: 🏗️ Build website
|
||||
uses: helaili/jekyll-action@v2
|
||||
- name: 🔧 Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
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
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
||||
with:
|
||||
|
@ -35,4 +42,3 @@ jobs:
|
|||
**/node_modules/**
|
||||
**/files/**
|
||||
dry-run: true
|
||||
|
Loading…
Reference in a new issue