Rename Events
section to Callback traces
(#78)
#36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Assets | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and update assets | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir | |
uses: erlef/[email protected] | |
with: | |
elixir-version: "1.17.3" | |
otp-version: "27.1.2" | |
- name: Cache Mix | |
uses: actions/cache@v4 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Cache npm dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ./assets/node_modules | |
key: ${{ runner.os }}-npm-${{ hashFiles('assets/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-npm- | |
- name: Install npm dependencies | |
working-directory: ./assets | |
run: npm install | |
- name: Setup assets | |
run: mix "assets.setup" | |
- name: Build assets | |
run: mix "assets.build" | |
- name: Push updated assets | |
id: push_assets | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update assets | |
file_pattern: priv |