From 10856b53fdbe7bbfdc1bfcdad4a89986f2c1d9bd Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Tue, 10 Oct 2023 18:49:24 +0000 Subject: [PATCH 1/3] Fix website structure --- .github/workflows/publish-pages.yml | 10 ++-------- .gitignore | 2 +- package.json | 3 ++- pages/demo.html | 2 +- pages/hotkey_mapper.html | 4 ++-- 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index d06e856..deda604 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -17,17 +17,11 @@ jobs: - run: npm install - - run: npm run build - - - name: Copy files - run: | - mkdir _site - cp -r pages _site - cp -r dist _site + - run: npm run buildSite - name: Fix permissions run: | - chmod -c -R +rX "_site/" | while read line; do + chmod -c -R +rX "pages/" | while read line; do echo "::warning title=Invalid file permissions automatically fixed::$line" done diff --git a/.gitignore b/.gitignore index dd50801..9711c77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules/ dist/ -_site/ +pages/hotkey diff --git a/package.json b/package.json index 1b4365f..0d38797 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "clean": "rm -rf dist", "prebuild": "npm run clean && npm run lint && mkdir dist", "pretest": "npm run build", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm run build", + "buildSite": "npm run build && mkdir -p pages/hotkey && cp -r dist/* pages/hotkey" }, "files": [ "dist", diff --git a/pages/demo.html b/pages/demo.html index cc5377f..3aaa3eb 100644 --- a/pages/demo.html +++ b/pages/demo.html @@ -17,7 +17,7 @@ Press o k click this link - \ No newline at end of file +