Skip to content

Commit

Permalink
fix: github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Sep 25, 2021
1 parent 3451bd8 commit 307f023
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ jobs:
with:
path: node_modules
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- name: Create mock config
run: echo -e "[uploader]\nroute = '/u'\nembed_route = '/a'\nlength = 6\ndirectory = './uploads'" > 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

0 comments on commit 307f023

Please sign in to comment.