diff --git a/.github/workflows/deploy-pages-site.yml b/.github/workflows/deploy-pages-site.yml new file mode 100644 index 0000000..c05f6cb --- /dev/null +++ b/.github/workflows/deploy-pages-site.yml @@ -0,0 +1,30 @@ +name: Deploy to GitHub Pages +on: + push: + branches: [chore/implement_gh_workflows] + +permissions: + contents: write +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + npm ci + npm run build + + - name: Build Page Script + run: | + npm i + npm run buildDocs + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: docs/public # The folder the action should deploy. + clean-exclude: pr-preview/ diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml new file mode 100644 index 0000000..a248a6d --- /dev/null +++ b/.github/workflows/deploy-pr-preview.yml @@ -0,0 +1,25 @@ +# .github/workflows/preview.yml +name: Deploy PR preview +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm i && npm run buildDocs + env: + CI: false + if: github.event.action != 'closed' + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./docs/public + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto diff --git a/.gitignore b/.gitignore index 7274b6c..f956f12 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ # Deliberately commit dist folder so we can directly consume the repo as a dependency. # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +# build files +/docs/static +/docs/public/static + # dependencies /node_modules /.pnp diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json deleted file mode 100644 index 185d4c0..0000000 --- a/docs/asset-manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "files": { - "main.css": "./static/css/main.053ff0b9.css", - "main.js": "./static/js/main.9d0ebd6a.js", - "static/js/787.43483533.chunk.js": "./static/js/787.43483533.chunk.js", - "index.html": "./index.html", - "main.053ff0b9.css.map": "./static/css/main.053ff0b9.css.map", - "main.9d0ebd6a.js.map": "./static/js/main.9d0ebd6a.js.map", - "787.43483533.chunk.js.map": "./static/js/787.43483533.chunk.js.map" - }, - "entrypoints": [ - "static/css/main.053ff0b9.css", - "static/js/main.9d0ebd6a.js" - ] -} \ No newline at end of file diff --git a/docs/public/asset-manifest.json b/docs/public/asset-manifest.json new file mode 100644 index 0000000..a7625cc --- /dev/null +++ b/docs/public/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "./static/css/main.2451c968.css", + "main.js": "./static/js/main.f22e287a.js", + "static/js/453.ebf7af86.chunk.js": "./static/js/453.ebf7af86.chunk.js", + "index.html": "./index.html", + "main.2451c968.css.map": "./static/css/main.2451c968.css.map", + "main.f22e287a.js.map": "./static/js/main.f22e287a.js.map", + "453.ebf7af86.chunk.js.map": "./static/js/453.ebf7af86.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.2451c968.css", + "static/js/main.f22e287a.js" + ] +} \ No newline at end of file diff --git a/docs/index.html b/docs/public/index.html similarity index 76% rename from docs/index.html rename to docs/public/index.html index 20c1985..07c6ec9 100644 --- a/docs/index.html +++ b/docs/public/index.html @@ -1 +1 @@ -