Skip to content

Commit

Permalink
added actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wuifdesign committed Nov 23, 2023
1 parent 0670da8 commit 2172721
Show file tree
Hide file tree
Showing 14 changed files with 434 additions and 86 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/docs
34 changes: 34 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy GH Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v2
with:
path: "docs"
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
23 changes: 23 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

docs
68 changes: 0 additions & 68 deletions docs/assets/index-WN7Je2x0.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/index-iCRY6s4y.css

This file was deleted.

Binary file removed docs/assets/logo-LEZlxE1R.png
Binary file not shown.
Binary file removed docs/assets/sound-1-TESbXtLr.mp3
Binary file not shown.
Binary file removed docs/assets/sound-2--VzIOVSQ.mp3
Binary file not shown.
Binary file removed docs/favicon.ico
Binary file not shown.
15 changes: 0 additions & 15 deletions docs/index.html

This file was deleted.

Loading

0 comments on commit 2172721

Please sign in to comment.