mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 20:42:17 +00:00
ci: fix existing deployment
This commit is contained in:
parent
37fd508bc1
commit
5a6d61f35f
@ -7,8 +7,9 @@ steps:
|
|||||||
- name: test & build
|
- name: test & build
|
||||||
image: node:18.16.0-bullseye
|
image: node:18.16.0-bullseye
|
||||||
commands:
|
commands:
|
||||||
# - git config --global --add safe.directory "/drone/src"
|
# - git config --global --add safe.directory "/drone/src"
|
||||||
- npm install -g pnpm
|
- corepack enable
|
||||||
|
- corepack prepare pnpm@latest --activate
|
||||||
- pnpm i --frozen-lockfile
|
- pnpm i --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
environment:
|
environment:
|
||||||
@ -26,7 +27,7 @@ steps:
|
|||||||
NETLIFY_API_KEY:
|
NETLIFY_API_KEY:
|
||||||
from_secret: NETLIFY_API_KEY
|
from_secret: NETLIFY_API_KEY
|
||||||
commands:
|
commands:
|
||||||
# - git config --global --add safe.directory "/drone/src"
|
# - git config --global --add safe.directory "/drone/src"
|
||||||
- python3 -m zipfile -c um-react.zip dist/.
|
- python3 -m zipfile -c um-react.zip dist/.
|
||||||
- ./scripts/publish.sh
|
- ./scripts/publish.sh
|
||||||
- ./scripts/deploy.sh
|
- ./scripts/deploy.sh
|
||||||
|
@ -79,4 +79,6 @@ deploy_netlify() {
|
|||||||
if [[ -n "${NETLIFY_API_KEY}" && -n "${NETLIFY_SITE_ID}" ]]; then
|
if [[ -n "${NETLIFY_API_KEY}" && -n "${NETLIFY_SITE_ID}" ]]; then
|
||||||
echo "Deploy to netlify..."
|
echo "Deploy to netlify..."
|
||||||
deploy_netlify um-react.zip
|
deploy_netlify um-react.zip
|
||||||
|
else
|
||||||
|
echo "skip netlify deployment."
|
||||||
fi
|
fi
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/env node
|
#!/usr/bin/env node
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
Loading…
Reference in New Issue
Block a user