Skip to content

Commit

Permalink
Fix CI on main branch (#1126)
Browse files Browse the repository at this point in the history
This fixes CI on `main` branch.


ref #1125
  • Loading branch information
garbas authored Sep 20, 2023
1 parent 2414333 commit e30f585
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 || '' }}

Expand Down

0 comments on commit e30f585

Please sign in to comment.