Another attempt at using Actions

This commit is contained in:
Alexander Minkin 2022-07-24 16:01:18 +03:00
parent 69c6a8e7c3
commit 6b26461e02
Signed by: WerySkok
GPG key ID: 88E9A2F3AFE44C30

View file

@ -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