Skip to content

Commit

Permalink
ci: build frontend with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jan 9, 2025
1 parent 4bc9e76 commit f0e0b90
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 22

- name: Install dependencies
run: npm --prefix frontend/ install
- uses: cachix/install-nix-action@v30

- name: build frontend
run: npm --prefix frontend/ run build
- name: Initialize nix environment
run: nix build .#frontend

- name: create frontend archive
uses: ksm2/archive-action@v1
with:
format: "tar.gz"
name: frontend
root-directory: "frontend/dist/"
root-directory: "result"

- name: commit to transcribee-frontend-releases repo
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit f0e0b90

Please sign in to comment.