Skip to content

Commit

Permalink
chore: try another deployment method
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Mar 19, 2024
1 parent d8f3804 commit bfa93dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish documentation
name: Deploy to CDN

on:
push:
branches: [ 'master' ]
tags: [ 'v*.*.*' ]

jobs:
publish-doc:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo $GITHUB_REF
Expand All @@ -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
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
"author": "Alban Mouton <alban.mouton@gmail.com>",
"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": [
Expand Down

0 comments on commit bfa93dc

Please sign in to comment.