From 9e4152e298e4380a0676cf116bfb7f3caccfb5e8 Mon Sep 17 00:00:00 2001 From: diced Date: Fri, 24 Sep 2021 20:41:26 -0700 Subject: [PATCH] fix: github actions build --- .github/workflows/build.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25c50bc..bf6e68e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,16 +21,13 @@ jobs: with: path: node_modules key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }} - + + - name: Create mock config + run: echo -e "[core]\nsecret = '12345678'\ndatabase_url = 'postgres://postgres:postgres@postgres/postgres'\n[uploader]\nroute = '/u'\ndirectory = './uploads'\n[urls]\nroute = '/go'" > config.toml + - name: Install dependencies if: steps.cache-restore.outputs.cache-hit != 'true' run: yarn install - + - name: Build - run: yarn build - env: - CORE_SECRET=12345678 - DATABASE_URL=postgres://postgres:postgres@postgres/postgres - UPLOADER_ROUTE=/u - UPLOADER_DIRECTORY=./uploads - URLS_ROUTE=/go \ No newline at end of file + run: yarn build \ No newline at end of file