Skip to content

Commit

Permalink
fix: data-dir is needed before build (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse authored Jul 23, 2024
1 parent 791c448 commit 4407c91
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: npm ci --prefer-offline --no-audit

- name: Clone the detailed impacts
if: ${{ steps.release.outputs.release_created }}
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.PRIVATE_SSH_KEY }}'
git clone [email protected]:MTES-MCT/ecobalyse-private.git
- name: Build app
if: ${{ steps.release.outputs.release_created }}
env:
Expand All @@ -46,13 +53,6 @@ jobs:
run: |
npm run build:standalone-app
- name: Clone the detailed impacts
if: ${{ steps.release.outputs.release_created }}
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.PRIVATE_SSH_KEY }}'
git clone [email protected]:MTES-MCT/ecobalyse-private.git
- name: Encrypt the impacts files
if: ${{ steps.release.outputs.release_created }}
env:
Expand All @@ -61,8 +61,8 @@ jobs:
# We include the encrypted detailed processes with the dist
# so that people with the encryption key could later on use the app with the exact
# files it was using on production
npm run encrypt ./ecobalyse-private/data/textile/processes_impacts.json dist/processes_impacts_textile.json.enc
npm run encrypt ./ecobalyse-private/data/food/processes_impacts.json dist/processes_impacts_food.json.enc
npm run encrypt $ECOBALYSE_DATA_DIR/data/textile/processes_impacts.json dist/processes_impacts_textile.json.enc
npm run encrypt $ECOBALYSE_DATA_DIR/data/food/processes_impacts.json dist/processes_impacts_food.json.enc
- name: Generate dist archive
if: ${{ steps.release.outputs.release_created }}
Expand Down

0 comments on commit 4407c91

Please sign in to comment.