Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Apr 25, 2024
1 parent 6c0f5d6 commit a55fd40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>
<div id="output"></div>
<script src="bundle.js"></script>
<script src="./bundle.js"></script>
<script>
let userProfile = `
@prefix ff: <https://foerderfunke.org/default#> .
Expand Down

0 comments on commit a55fd40

Please sign in to comment.