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/