This commit is contained in:
parent
2a481ed6b3
commit
a4929cf5d7
3 changed files with 16 additions and 68 deletions
|
@ -1,11 +1,18 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: selfhosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
npm ci
|
||||
bundle install
|
||||
TAILWINDCSS_INSTALL_DIR=node_modules/.bin bundle exec ruby build.rb
|
||||
cp -rf _build/* /srv/farthergate.com/
|
||||
deploy:
|
||||
runs-on: selfhosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
vendor/bundle
|
||||
- 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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue