Skip to content

Commit

Permalink
CI: Deploy ssg build to github pages (#5)
Browse files Browse the repository at this point in the history
* ci: Deploy ssg build to github pages

* feat: Remove index.html

* ci: Use deploy pages v2

* config: Set fallback to index.html

* ci: Use BASE_PATH

* fix: Fix main page

* fix: Fix static site generation

* fix: Fix CSS import

* fix: Fix paths

* style: Style homepage

* docs: Improve README.md

* ci: Make sure BASE_PATH env variable gets taken

* feat: Try to set base hard-coded in workflow
  • Loading branch information
drikusroor authored Nov 2, 2023
1 parent 2b15e97 commit 3ecf92f
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 1,395 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

env:
BASE_PATH: ${{ vars.BASE_PATH }}

jobs:
build:
Expand All @@ -19,3 +28,18 @@ jobs:

- run: bun install
- run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy artifact to GitHub Pages
uses: actions/deploy-pages@v2
id: deployment
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@

# 百 - Hyaku

![百 - Hyaku logo](favicon.png)
[![CI](https://github.com/drikusroor/hyaku/actions/workflows/main.yml/badge.svg)](https://github.com/drikusroor/hyaku/actions/workflows/main.yml)

![百 - Hyaku logo](./static/favicon.png)

Hyaku is a mini web application to practice the 100 most important japanese words & sentences. It tracks the mistakes you make and then prioritizes those words.
Hyaku is a mini web application to practice the 100 most important Japanese or Esperanto words & sentences. It tracks the mistakes you make and then prioritizes those words.

You can visit the site at: <https://drikusroor.github.io/hyaku/>

## Languages to learn

Currently, the following languages are supported:

- [Japanese](https://drikusroor.github.io/hyaku/japanese)
- [Esperanto](https://drikusroor.github.io/hyaku/esperanto)

## Languages and modes

Two languages are currently supported:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
Loading

0 comments on commit 3ecf92f

Please sign in to comment.