From 04e363b8c7a2835cd0c33cd32ff2ec60c42840f4 Mon Sep 17 00:00:00 2001 From: Brock Fanning Date: Thu, 16 Nov 2023 07:08:27 -0500 Subject: [PATCH] Progress --- .github/workflows/publish.yml | 38 +++++++++++++++++++++++++++++++++++ package.json | 2 +- src/App.js | 3 --- 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6f30b19 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,38 @@ +name: Publish the built javascript to Github Pages + +on: + push: + branches: ["main"] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Install dependencies + run: npm install + - name: Build assets + run: npm run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: 'dist/bundle.js' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/package.json b/package.json index 7f5cf62..bbf4c7d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "start": "webpack-dev-server --mode development --open --hot", - "build": "webpack --mode development" + "build": "webpack --mode production" }, "keywords": [], "author": "", diff --git a/src/App.js b/src/App.js index d17a6ce..dddc6ac 100644 --- a/src/App.js +++ b/src/App.js @@ -12,9 +12,6 @@ import GithubPushButton from './GithubPushButton'; import GroupWithDescription, { groupWithDescriptionTester } from './GroupWithDescription'; -import ObjectArrayWithDescription, { - objectArrayWithDescriptionTester -} from './ObjectArrayWithDescription'; import FlatArrayWithDescription, { flatArrayWithDescriptionTester } from './FlatArrayWithDescription';