-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: data-dir is needed before build (#681)
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 }} | ||
|