From 9f4dcb5ca8b90f40e02b0806707e4cec8e6f8ee2 Mon Sep 17 00:00:00 2001
From: Tore Bergebakken <toberge@stud.ntnu.no>
Date: Mon, 10 May 2021 13:11:17 +0200
Subject: [PATCH] Add .env file to build step + revert to publish

Publish instead of build since builds only need to be done once in a
while...
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df1e532..3216516 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -137,9 +137,10 @@ build_app:
   dependencies: []
   script:
     - cd frontend
+    - cp "$FRONTEND_ENV_FILE" .env # for setting correct URLs
     - npm install expo-cli
     - npx expo login --non-interactive -u "$EXPO_CLI_USERNAME" # password is env var
-    - npx expo build:android --non-interactive --no-wait
+    - npx expo publish --non-interactive
   only:
     - develop
     - master
-- 
GitLab