Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
brockfanning committed Nov 16, 2023
1 parent 1703b7f commit 04e363b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
3 changes: 0 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import GithubPushButton from './GithubPushButton';
import GroupWithDescription, {
groupWithDescriptionTester
} from './GroupWithDescription';
import ObjectArrayWithDescription, {
objectArrayWithDescriptionTester
} from './ObjectArrayWithDescription';
import FlatArrayWithDescription, {
flatArrayWithDescriptionTester
} from './FlatArrayWithDescription';
Expand Down

0 comments on commit 04e363b

Please sign in to comment.