From bfa93dc0a138ce90848156de769df5f46fe9a3f3 Mon Sep 17 00:00:00 2001 From: Alban Mouton Date: Tue, 19 Mar 2024 15:26:19 +0100 Subject: [PATCH] chore: try another deployment method --- .github/workflows/deploy.yml | 6 ++++-- package.json | 9 +++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e058ea4..8b43438 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Publish documentation +name: Deploy to CDN on: push: @@ -6,7 +6,7 @@ on: tags: [ 'v*.*.*' ] jobs: - publish-doc: + deploy: runs-on: ubuntu-latest steps: - run: echo $GITHUB_REF @@ -22,5 +22,7 @@ jobs: export PUBLIC_URL=https://cdn.jsdelivr.net/gh/data-fair/app-charts@deploy/$MINOR echo "PUBLIC_URL=$PUBLIC_URL" npm run build + git config --global user.email "github-actions@koumoul.com" + git config --global user.name "github-actions" ./node_modules/.bin/gh-pages-multi deploy -v -b deploy -s dist --no-history -t $MINOR diff --git a/package.json b/package.json index 4e2e46e..759f097 100644 --- a/package.json +++ b/package.json @@ -5,17 +5,14 @@ "author": "Alban Mouton ", "homepage": "https://data-fair.github.io/3/user-guide-backoffice/charts", "scripts": { - "analyze": "cross-env ANALYZE=true npm run build-dev", - "build": "cross-env-shell PUBLIC_URL=https://cdn.jsdelivr.net/npm/@data-fair/app-charts@${npm_package_version}/dist \"npm run prepareBuild && vite build\"", - "build-preview": "npm run prepareBuild && vite build", - "build-staging": "npm run prepareBuild && cross-env-shell PUBLIC_URL=https://staging-koumoul.com/apps/charts/master/ \"vite build\"", + "analyze": "cross-env ANALYZE=true npm run build", + "build": "rimraf dist && npm run build-types && node prepare-schema.js && tsc && vite build\"", "build-types": "df-build-types && ncp src/config/.type/resolved-schema.json public/config-schema.json", "dev": "cross-env APP_URL=http://localhost:3000/app/ df-dev-server", "dev-src": "vite --port 3000", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", "precommit": "npm run lint", - "prepareBuild": "rimraf dist && npm run build-types && node prepare-schema.js && tsc", - "prepublishOnly": "npm run build", + "prepareBuild": "", "preview": "vite preview" }, "files": [