Docs: update landing page (#837) #523
This file contains hidden or 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 | |
| - "v*.*" | |
| jobs: | |
| build: | |
| name: Build and update assets | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1.20.4 | |
| with: | |
| elixir-version: "1.19.1" | |
| otp-version: "28.1.1" | |
| - 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 app npm dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./assets/app/node_modules | |
| key: ${{ runner.os }}-npm-app-${{ hashFiles('assets/app/package-lock.json') }} | |
| restore-keys: ${{ runner.os }}-npm-app- | |
| - name: Cache client npm dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./assets/client/node_modules | |
| key: ${{ runner.os }}-npm-client-${{ hashFiles('assets/client/package-lock.json') }} | |
| restore-keys: ${{ runner.os }}-npm-client- | |
| - name: Install npm dependencies in app | |
| working-directory: ./assets/app | |
| run: npm install | |
| - name: Install npm dependencies in client | |
| working-directory: ./assets/client | |
| run: npm install | |
| - name: Setup assets | |
| run: mix "assets.setup" | |
| - name: Build assets | |
| run: mix "assets.build:deploy" | |
| - name: Push updated assets | |
| id: push_assets | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: Update assets | |
| file_pattern: priv |