farthergate.com/.forgejo/workflows/deploy.yml
Aleks Rutins 5128fdf423
All checks were successful
/ deploy (push) Successful in 3m50s
Add cache key
2025-06-10 17:07:57 -04:00

19 lines
618 B
YAML

on: [push]
jobs:
deploy:
runs-on: selfhosted
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
node_modules
vendor/bundle
key: ${{ runner.os }}-node-ruby-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/Gemfile.lock') }}
- name: Install dependencies
run: npm ci && bundle install
- name: Build site
run: TAILWINDCSS_INSTALL_DIR=node_modules/.bin bundle exec ruby build.rb
- name: Deploy site
run: cp -rf _build/* /srv/farthergate.com/