From a55fd40e7531ddf20c35aa5153c03f73f9effb37 Mon Sep 17 00:00:00 2001 From: Benjamin Degenhart Date: Thu, 25 Apr 2024 14:02:09 +0200 Subject: [PATCH] asdf --- .github/workflows/pipeline.yml | 4 ---- package.json | 5 ++++- public/index.html | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a92478b..da4b076 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -13,18 +13,14 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: '20.11.1' - - name: Install dependencies run: npm install - - name: Collect assets run: npm run collectAssets - - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v4 with: diff --git a/package.json b/package.json index 812ad3a..28d9991 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "@foerderfunke/matching-engine": "^0.3.1" }, "scripts": { - "collectAssets": "mkdir -p public && git clone https://github.com/Citizen-Knowledge-Graph/requirement-profiles public/requirement-profiles && rm -r public/requirement-profiles/.git && cp ./node_modules/@foerderfunke/matching-engine/dist/bundle.js public/" + "cloneRepo": "git clone https://github.com/Citizen-Knowledge-Graph/requirement-profiles public/requirement-profiles", + "cleanRepo": "rm -rf public/requirement-profiles/.git*", + "copyBundle": "cp ./node_modules/@foerderfunke/matching-engine/dist/bundle.js public/", + "collectAssets": "npm run cloneRepo && npm run cleanRepoFiles && npm run copyBundle" } } diff --git a/public/index.html b/public/index.html index 25026c9..e57c77d 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@
- +