Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 9c10055

Browse files
committed
use prepare nix
1 parent e99e821 commit 9c10055

1 file changed

Lines changed: 7 additions & 62 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,10 @@ jobs:
2626
ROOT: ${{ env.ROOT }}
2727
CACHE: ${{ env.CACHE }}
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
30-
# - name: Prepare Nix
31-
# uses: ./.github/workflows/prepare-nix.yml
32-
# with:
33-
# ROOT: ${{ env.ROOT }}
34-
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
35-
36-
# - name: Install Nix
37-
# uses: cachix/install-nix-action@v17
38-
# with:
39-
# extra_nix_config: |
40-
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
41-
# substituters = https://br4ch1st0chr0n3-nix-managed.cachix.org https://br4ch1st0chr0n3-flakes.cachix.org https://cache.nixos.org/ https://hydra.iohk.io https://nix-community.cachix.org
42-
# trusted-public-keys = br4ch1st0chr0n3-nix-managed.cachix.org-1:sDKsfgu5fCCxNwVhZg+AWeGvbLlEtZoyzkSNKRM/KAo= br4ch1st0chr0n3-flakes.cachix.org-1:Dyc2yLlRIkdbq8CtfOe24QQhQVduQaezkyV8J9RhuZ8= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
43-
44-
# - uses: cachix/cachix-action@v10
45-
# with:
46-
# name: ${{ matrix.cache }}
47-
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
48-
# - name: Push inputs to cachix
49-
# run: |
50-
# # https://docs.cachix.org/pushing#flakes
51-
52-
# nix flake archive --json \
53-
# | jq -r '.path,(.inputs|to_entries[].value.path)' \
54-
# | cachix push ${{ matrix.cache }}
55-
# - name: Push devshell to cachix
56-
# run: |
57-
# nix develop --profile dev-profile
58-
# cachix push ${{ matrix.cache }} dev-profile
5929

6030
- name: Build with Nix
6131
run: |
32+
cd ${{ env.ROOT }}
6233
nix develop -c bash -c '
6334
npm run build:gh-pages
6435
'
@@ -83,38 +54,12 @@ jobs:
8354
APP_NAME: try-phi-back
8455
steps:
8556
- uses: actions/checkout@v3
86-
87-
- uses: cachix/install-nix-action@v17
57+
- name: Prepare Nix
58+
uses: ./.github/actions/prepare-nix
8859
with:
89-
extra_nix_config: |
90-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
91-
substituters = https://br4ch1st0chr0n3-nix-managed.cachix.org https://br4ch1st0chr0n3-flakes.cachix.org https://cache.nixos.org/ https://hydra.iohk.io https://nix-community.cachix.org
92-
trusted-public-keys = br4ch1st0chr0n3-nix-managed.cachix.org-1:sDKsfgu5fCCxNwVhZg+AWeGvbLlEtZoyzkSNKRM/KAo= br4ch1st0chr0n3-flakes.cachix.org-1:Dyc2yLlRIkdbq8CtfOe24QQhQVduQaezkyV8J9RhuZ8= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
93-
94-
# - name: Log in to cachix
95-
# uses: cachix/cachix-action@v10
96-
# with:
97-
# name: $CACHE
98-
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
99-
100-
# - name: Push inputs to cachix
101-
# # https://docs.cachix.org/pushing#flakes
102-
# run: |
103-
# cd ${{ env.ROOT }}
104-
# nix flake archive --json \
105-
# | jq -r '.path,(.inputs|to_entries[].value.path)' \
106-
# | cachix push ${{ matrix.cache }}
107-
108-
# - name: Push devshell to cachix
109-
# run: |
110-
# cd ${{ env.ROOT }}
111-
# nix develop --profile dev-profile
112-
# cachix push ${{ matrix.cache }} dev-profile
113-
114-
# - name: Build with Nix
115-
# run: |
116-
# cd ${{ env.ROOT }}
117-
# nix build
60+
ROOT: ${{ env.ROOT }}
61+
CACHE: ${{ env.CACHE }}
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11863

11964
- name: Prepare ${{ env.ARTIFACTS_DIR }} dir
12065
run: |
@@ -136,7 +81,7 @@ jobs:
13681
uses: actions/checkout@v3
13782
with:
13883
ref: ${{ env.ARTIFACTS_BRANCH }}
139-
84+
14085
- name: Push to Heroku
14186
uses: akhileshns/heroku-deploy@v3.12.12
14287
with:

0 commit comments

Comments
 (0)