diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0edf91f..7f196a2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: with: fetch-depth: 0 - - name: Build + - name: Build Site run: | cargo doc --no-deps cargo install cargo-tarpaulin @@ -40,6 +40,11 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Build App + run: | + cargo install dioxus-cli + dx build --release + - name: Publish run: | git config --global user.email "nigeleke@users.noreply.github.com" @@ -48,6 +53,8 @@ jobs: git checkout gh-pages rm -rf docs mv docs0 docs + mkdir docs/app/ + mv -R dist/* docs/app/ git add . git commit -m "Release $VERSION" git push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 8a776f0..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,29 +0,0 @@ -# Run release-cycle on main commits. -# -# Release cycle comprises: -# - build release versions of application -# - publish app -# -name: Release Cycle - -on: - workflow_run: - workflows: ["Publish Cycle"] - branches: [main] - types: - - completed - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Build - run: | - cargo install dioxus-cli - dx build --release diff --git a/LICENSE.md b/LICENSE similarity index 100% rename from LICENSE.md rename to LICENSE diff --git a/README.md b/README.md index 883bbb4..99c0ba8 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,20 @@ [![Coverage](https://img.shields.io/codecov/c/github/nigeleke/scopa?style=plastic)](https://codecov.io/gh/nigeleke/scopa) ![Version](https://img.shields.io/github/v/tag/nigeleke/scopa?style=plastic) - [Site](https://nigeleke.github.io/scopa) \| [GitHub](https://github.com/nigeleke/scopa) \| [API](https://nigeleke.github.io/scopa/api/index.html) \| [Coverage Report](https://nigeleke.github.io/scopa/coverage/index.html) + [Site](https://nigeleke.github.io/scopa) \| [GitHub](https://github.com/nigeleke/scopa) \| [API](https://nigeleke.github.io/scopa/api/index.html) \| [Coverage Report](https://nigeleke.github.io/scopa/coverage/index.html) \| [App](https://nigeleke.github.io/scopa/app/) [Scopa](https://en.wikipedia.org/wiki/Scopa) is a popular Italian card game played by two to four players. ## Background -I first discovered this card game during a holiday in Puglia in August 2024. In order to complete the scoring I set up a spreadsheet to track each round for each player. It worked but was not easy to navigate or reset. +I initially discovered Scopa during a holiday in Puglia in August 2024. For a beginner especially it's scoring seemed somewhat complicated and I setup a spreadsheet to track each round of scores for each player. It worked but was not easy to navigate or reset or add additional players. I decided to write this program: - a) to have a simpler way to score the game and - b) to complete a development using the [Dioxus](https://dioxuslabs.com/) framework (by way of a comparison against earlier work developed using [Leptos](https://www.leptos.dev/)). + a) to have a simpler way to score the game and + b) to complete a development using the [Dioxus](https://dioxuslabs.com/) framework (by way of a comparison against earlier work developed using [Leptos](https://www.leptos.dev/)). -The project is essentially complete but some further work will be done for usabiity. +As of October 2024 the project is essentially complete but some further work will be done on the UI graphics and usability. ## Development @@ -30,7 +30,7 @@ cargo test ## Run ```bash -dx serve --hot-reload +dx serve ``` - Open the browser to http://localhost:8080