From e30f5857e6369bb9fb1b714655a390f170d97814 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Wed, 20 Sep 2023 23:50:27 +0200 Subject: [PATCH] Fix CI on main branch (#1126) This fixes CI on `main` branch. ref #1125 --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91ba7108b2..d0b1694651 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,8 @@ jobs: - name: "Build" run: | - nix develop --command "npm run build" + nix develop --command npm install + nix develop --command npm run build mkdir build cp -RL ./dist/* ./build/ cp -RL ./netlify.toml ./build/ @@ -68,8 +69,9 @@ jobs: enable-commit-comment: false enable-commit-status: true - production-branch: 'main' - production-deploy: ${{ github.event_name == 'push' && github.ref_name == 'main' }} + # TODO: once we make main branch default we should change master->main + production-branch: 'master' + production-deploy: ${{ github.event_name == 'push' && github.ref_name == 'master' }} alias: ${{ github.event_name == 'push' && github.ref_name || '' }}