Re-add Ansible and DigitalOcean

This commit is contained in:
Oliver Davies 2021-03-14 18:16:46 +00:00
parent 51db8d5609
commit ff4b027814
21 changed files with 472 additions and 312 deletions

View file

@ -0,0 +1,19 @@
---
- name: Install theme dependencies
command: >
npm ci
chdir={{ release_theme_path }}
creates={{ release_theme_path }}/node_modules
- name: Generate front-end assets
command: >
npm run production
chdir={{ release_theme_path }}
creates={{ release_theme_path }}/dist
- name: Remove files that are no longer needed
file:
path: "{{ release_theme_path }}/{{ item }}"
state: absent
with_items:
- node_modules