Skip to content

Commit

Permalink
Merge pull request #103 from SaekiTominaga/githubpages-deploy
Browse files Browse the repository at this point in the history
Change Github Pages deployment to Github Actions
  • Loading branch information
SaekiTominaga authored Sep 25, 2024
2 parents 40797b8 + 2a1bbdd commit 92b467c
Show file tree
Hide file tree
Showing 83 changed files with 67 additions and 3,232 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/github-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy static content to Pages

on:
push:
branches:
- main
paths:
- 'packages/*/demo/**/*.*'
- 'packages/*/src/**/*.ts'
workflow_dispatch:

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:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci
- run: npm run build -w *
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: '.'
- id: deployment
uses: actions/deploy-pages@v4
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/.coverage/

/**/node_modules/

*.map
tsconfig.tsbuildinfo

/packages/*/dist/**/*.d.ts
/packages/*/dist/
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ export default [
},
},
{
files: ['**/*.test.js'],
files: ['packages/*/__tests__/**/*.test.js'],
rules: {
'require-await': 'off',
'import/no-unassigned-import': 'off',
'import/no-unresolved': 'off', // Github Actions 環境では /dist/ ファイルが存在しないためテスト不可
},
},
{
Expand Down
61 changes: 0 additions & 61 deletions packages/button-checkboxes/dist/ButtonCheckboxes.js

This file was deleted.

54 changes: 0 additions & 54 deletions packages/button-checkboxes/dist/attribute/Checkbox.js

This file was deleted.

22 changes: 0 additions & 22 deletions packages/button-checkboxes/dist/attribute/Course.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/button-checkboxes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"build": "tsc",
"watch": "tsc -w",
"lint": "eslint src/**/*.ts __tests__/**/*.js",
"pretest": "npm run build",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest -c ../../jest.config.mjs --roots packages/button-checkboxes"
},
"publishConfig": {
Expand Down
34 changes: 0 additions & 34 deletions packages/button-clipboard/dist/ButtonClipboard.js

This file was deleted.

34 changes: 0 additions & 34 deletions packages/button-clipboard/dist/attribute/Data.js

This file was deleted.

23 changes: 0 additions & 23 deletions packages/button-clipboard/dist/attribute/Feedback.js

This file was deleted.

30 changes: 0 additions & 30 deletions packages/button-clipboard/dist/htmlContent.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/button-clipboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"build": "tsc",
"watch": "tsc -w",
"lint": "eslint src/**/*.ts __tests__/**/*.js",
"pretest": "npm run build",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest -c ../../jest.config.mjs --roots packages/button-clipboard"
},
"publishConfig": {
Expand Down
26 changes: 0 additions & 26 deletions packages/button-confirm/dist/ButtonConfirm.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/button-confirm/dist/attribute/Message.js

This file was deleted.

Loading

0 comments on commit 92b467c

Please sign in to comment.