mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-30 19:53:00 +08:00
889503ad68
* Require Elixir v1.12 * Update introductory notebook * Update base Docker images * Add completion of reserved module attributes * Move complete_module_attribute/1
31 lines
875 B
YAML
31 lines
875 B
YAML
name: Assets build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Erlang & Elixir
|
|
uses: erlef/setup-beam@v1
|
|
with:
|
|
otp-version: '24.0'
|
|
elixir-version: '1.12.0'
|
|
# Note: we need to get Phoenix and LV because package.json points to them directly
|
|
- name: Install mix dependencies
|
|
run: mix deps.get
|
|
- name: Install Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14.x'
|
|
- name: Install npm dependencies
|
|
run: npm ci --prefix assets
|
|
- name: Build assets
|
|
run: npm run deploy --prefix assets
|
|
- name: Update assets
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: Update assets
|
|
file_pattern: priv/static
|