Skip to content

Commit

Permalink
Github Pages with Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaq committed Oct 8, 2023
1 parent 3f994e0 commit 6a22379
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 595 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure Github Pages
uses: actions/configure-pages@v3
- name: Checkout repo
uses: actions/checkout@v4
- name: Build release
run: make all
- name: Assemble release folder
run: |
mkdir release-gh-pages
cp release release-gh-pages/
cp sw.js release-gh-pages/
cp index.css release-gh-pages/
cp index.html release-gh-pages/
cp manifest.json release-gh-pages/
cp kanjiInfo.json release-gh-pages/
cp radk.json release-gh-pages/
- name: Upload Github Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./release-gh-pages"
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v2

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__/
release/
179 changes: 0 additions & 179 deletions release/ComponentSearchPanel.js

This file was deleted.

Loading

0 comments on commit 6a22379

Please sign in to comment.