From 51ca5c594b7740e2a670b417b2ab063104463e68 Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark.z.harrison@gmail.com> Date: Mon, 12 Feb 2024 22:57:37 -0800 Subject: [PATCH 1/5] Revert "Update sync-wiki.yml" This reverts commit 0594b03236303e2a4ced7704ee75cc643141158a. --- .github/workflows/sync-wiki.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index 07501ea76..da6aea330 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -7,12 +7,6 @@ on: paths: - 'wiki/**' - 'README.md' - pull_request: - branches: - - master - paths: - - 'wiki/**' - - 'README.md' jobs: sync: @@ -45,26 +39,24 @@ jobs: echo "Error: Conflicting changes. Edit either the README.md file or the wiki/Home.md file, not both." exit 1 - name: Set github bot global config - if: github.event_name == "push" run: | git config --global user.email "actions@github.com" git config --global user.name "actions-user" - name: Sync README.md to wiki/Home.md - if: steps.changes.outputs.readme == 'true' && github.event_name == "push" + if: steps.changes.outputs.readme == 'true' run: | cp -r $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/wiki/Home.md git add wiki/Home.md git commit -m "Auto update wiki/Home.md" git push - name: Sync wiki/Home.md to README.md - if: steps.changes.outputs.home == 'true' && github.event_name == "push" + if: steps.changes.outputs.home == 'true' run: | cp -r $GITHUB_WORKSPACE/wiki/Home.md $GITHUB_WORKSPACE/README.md git add README.md git commit -m "Auto update README.md" git push - name: Sync all files to wiki - if: github.event_name == "push" run: | cp -r $GITHUB_WORKSPACE/wiki/* $GITHUB_WORKSPACE/lichess-bot.wiki cd $GITHUB_WORKSPACE/lichess-bot.wiki From fd89f37602efa58e1b16d25937ea8fff78fef98f Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark.z.harrison@gmail.com> Date: Mon, 12 Feb 2024 23:08:10 -0800 Subject: [PATCH 2/5] Sync wiki homepage to README page --- .github/workflows/sync-wiki.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index da6aea330..c924f8795 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -27,17 +27,8 @@ jobs: filters: | wiki: - 'wiki/**' - home: - - 'wiki/Home.md' readme: - 'README.md' - - name: Prevent Conflicts - if: | - steps.changes.outputs.home == 'true' && - steps.changes.outputs.readme == 'true' - run: | - echo "Error: Conflicting changes. Edit either the README.md file or the wiki/Home.md file, not both." - exit 1 - name: Set github bot global config run: | git config --global user.email "actions@github.com" @@ -49,13 +40,6 @@ jobs: git add wiki/Home.md git commit -m "Auto update wiki/Home.md" git push - - name: Sync wiki/Home.md to README.md - if: steps.changes.outputs.home == 'true' - run: | - cp -r $GITHUB_WORKSPACE/wiki/Home.md $GITHUB_WORKSPACE/README.md - git add README.md - git commit -m "Auto update README.md" - git push - name: Sync all files to wiki run: | cp -r $GITHUB_WORKSPACE/wiki/* $GITHUB_WORKSPACE/lichess-bot.wiki From 620b925537c11d1d66606cff27de160b0c785b88 Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark.z.harrison@gmail.com> Date: Mon, 12 Feb 2024 23:10:33 -0800 Subject: [PATCH 3/5] Always prefer wiki/ and README files --- .github/workflows/sync-wiki.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index c924f8795..9946024e7 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -20,21 +20,11 @@ jobs: with: repository: "${{ github.repository }}.wiki" path: "lichess-bot.wiki" - - name: Set path - uses: dorny/paths-filter@v3 - id: changes - with: - filters: | - wiki: - - 'wiki/**' - readme: - - 'README.md' - name: Set github bot global config run: | git config --global user.email "actions@github.com" git config --global user.name "actions-user" - name: Sync README.md to wiki/Home.md - if: steps.changes.outputs.readme == 'true' run: | cp -r $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/wiki/Home.md git add wiki/Home.md From b253333af5b91ddef9bd0e340319a780b57390b7 Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark.z.harrison@gmail.com> Date: Tue, 13 Feb 2024 02:31:15 -0800 Subject: [PATCH 4/5] Sync all wiki files in one syep --- .github/workflows/sync-wiki.yml | 7 +------ wiki/Home.md | 35 --------------------------------- 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 wiki/Home.md diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index 9946024e7..2b2c579ee 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -24,14 +24,9 @@ jobs: run: | git config --global user.email "actions@github.com" git config --global user.name "actions-user" - - name: Sync README.md to wiki/Home.md - run: | - cp -r $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/wiki/Home.md - git add wiki/Home.md - git commit -m "Auto update wiki/Home.md" - git push - name: Sync all files to wiki run: | + cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/lichess-bot.wiki cp -r $GITHUB_WORKSPACE/wiki/* $GITHUB_WORKSPACE/lichess-bot.wiki cd $GITHUB_WORKSPACE/lichess-bot.wiki git add . diff --git a/wiki/Home.md b/wiki/Home.md deleted file mode 100644 index a5065da7e..000000000 --- a/wiki/Home.md +++ /dev/null @@ -1,35 +0,0 @@ -# lichess-bot -[](https://github.com/lichess-bot-devs/lichess-bot/actions/workflows/python-build.yml) -[](https://github.com/lichess-bot-devs/lichess-bot/actions/workflows/python-test.yml) -[](https://github.com/lichess-bot-devs/lichess-bot/actions/workflows/mypy.yml) - -A bridge between [Lichess Bot API](https://lichess.org/api#tag/Bot) and bots. - -## Features -Supports: -- Every variant and time control -- UCI, XBoard, and Homemade engines -- Matchmaking -- Offering Draw / Resigning -- Saving games as PGN -- Local & Online Opening Books -- Local & Online Endgame Tablebases - -## Steps -1. [Install lichess-bot](https://github.com/lichess-bot-devs/lichess-bot/wiki/How-to-Install) -2. [Create a lichess OAuth token](https://github.com/lichess-bot-devs/lichess-bot/wiki/How-to-create-a-Lichess-OAuth-token) -3. [Upgrade to a BOT account](https://github.com/lichess-bot-devs/lichess-bot/wiki/Upgrade-to-a-BOT-account) -4. [Setup the engine](https://github.com/lichess-bot-devs/lichess-bot/wiki/Setup-the-engine) -5. [Configure lichess-bot](https://github.com/lichess-bot-devs/lichess-bot/wiki/Configure-lichess-bot) -6. [Run lichess-bot](https://github.com/lichess-bot-devs/lichess-bot/wiki/How-to-Run-lichess%E2%80%90bot) - -## Advanced options -- [Create a homemade engine](https://github.com/lichess-bot-devs/lichess-bot/wiki/Create-a-homemade-engine) - -<br /> - -## Acknowledgements -Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero team to get this API up. Thanks to the [Niklas Fiekas](https://github.com/niklasf) and his [python-chess](https://github.com/niklasf/python-chess) code which allows engine communication seamlessly. - -## License -lichess-bot is licensed under the AGPLv3 (or any later version at your option). Check out the [LICENSE file](https://github.com/lichess-bot-devs/lichess-bot/blob/master/LICENSE) for the full text. From 562a5c8dbedb7c6f9cd7f4350711971652f3e514 Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark.z.harrison@gmail.com> Date: Thu, 15 Feb 2024 22:00:52 -0800 Subject: [PATCH 5/5] Use correct file name for wiki home page --- .github/workflows/sync-wiki.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index 2b2c579ee..e5cf42e4c 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -26,7 +26,7 @@ jobs: git config --global user.name "actions-user" - name: Sync all files to wiki run: | - cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/lichess-bot.wiki + cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/lichess-bot.wiki/Home.md cp -r $GITHUB_WORKSPACE/wiki/* $GITHUB_WORKSPACE/lichess-bot.wiki cd $GITHUB_WORKSPACE/lichess-bot.wiki git add .