fix: github actions build
This commit is contained in:
parent
307f023e47
commit
9e4152e298
1 changed files with 6 additions and 9 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -21,16 +21,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
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
|
- name: Install dependencies
|
||||||
if: steps.cache-restore.outputs.cache-hit != 'true'
|
if: steps.cache-restore.outputs.cache-hit != 'true'
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
|
||||||
CORE_SECRET=12345678
|
|
||||||
DATABASE_URL=postgres://postgres:postgres@postgres/postgres
|
|
||||||
UPLOADER_ROUTE=/u
|
|
||||||
UPLOADER_DIRECTORY=./uploads
|
|
||||||
URLS_ROUTE=/go
|
|
Loading…
Add table
Reference in a new issue