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

Commit

Permalink
GH Action fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eoussama committed Jan 9, 2024
1 parent dbd05a5 commit e3350b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
- name: Build
run: pnpm install

- name: Dependencies
run: |
mkdir -p ./src/node_modules/bootstrap/dist
cp -R ./node_modules/bootstrap/dist/* ./src/node_modules/bootstrap/dist/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Web Services Project 1.",
"main": "index.js",
"scripts": {
"start": "http-server . -o ./src/index.html"
"postinstall": "npm run dependencies",
"start": "http-server ./src -o",
"dependencies": "cp -R ./node_modules/bootstrap/dist ./src/verbose/bootstrap"
},
"keywords": [
"master",
Expand All @@ -18,4 +20,4 @@
"dependencies": {
"bootstrap": "^5.3.2"
}
}
}
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<link
rel="stylesheet"
href="../node_modules/bootstrap/dist/css/bootstrap.min.css"
href="verbose/bootstrap/css/bootstrap.min.css"
>

<link
Expand All @@ -32,7 +32,7 @@
<h1>Hello, world!</h1>
</main>

<script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="verbose/bootstrap//js/bootstrap.min.js"></script>
<script src="scripts/main.js"></script>
</body>

Expand Down
Empty file added src/verbose/.gitkeep
Empty file.

0 comments on commit e3350b1

Please sign in to comment.