ci: updated ci

This commit is contained in:
AlphaNecron 2021-10-05 11:27:21 +07:00
parent 46bb3b3b38
commit b7a81e5345
1 changed files with 4 additions and 2 deletions

View File

@ -34,9 +34,11 @@ jobs:
path: node_modules
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- name: create config
run: echo -e "[core]\ndatabase_url = ${{ secrets.DATABASE_URL }}\n[uploader]\nlength = 6\ndirectory = './uploads'" > config.toml
run: echo -e "[uploader]\nlength = 6\ndirectory = './uploads'" > config.toml
- name: install deps
if: steps.cache-restore.outputs.cache-hit != 'true'
run: yarn install
- name: build
run: yarn build
run: yarn build
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}