-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__pycache__/ | ||
release/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.