From 3cf575f8fdf343bcad8345a2ea6da09344c9c589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20L=C3=AA=20Huy?= Date: Mon, 13 May 2024 22:00:21 +0700 Subject: [PATCH] chore: create wiki-publish.yml --- .github/workflows/wiki-publish.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/wiki-publish.yml diff --git a/.github/workflows/wiki-publish.yml b/.github/workflows/wiki-publish.yml new file mode 100644 index 0000000000..d160976e7e --- /dev/null +++ b/.github/workflows/wiki-publish.yml @@ -0,0 +1,38 @@ +name: Publish Wiki Pages + +on: + push: + branches: + - main + +jobs: + publish: + + runs-on: ubuntu-latest + + steps: + - name: github-docs-to-wiki + # You may pin to the exact commit or the version. + # uses: cmbrose/github-docs-to-wiki@11bb98c77ac3ef07f29ba9ef0c7b4c9360da2fd4 + uses: cmbrose/github-docs-to-wiki@v0.24 + with: + # The GitHub PAT, used to clone the wiki repo + githubToken: ${{ secrets.TOKEN }} + # The default branch name (master, main, etc) + defaultBranch: main + # A directory within the repository where the docs are located + # rootDocsFolder: # optional + # If true, renames the README.md file to Home.md in the wiki (the wiki homepage) + convertRootReadmeToHomePage: true + # If true, names wiki pages according to the top header of the source file (using `#`) + useHeaderForWikiName: false + # If set, inserts a header at the top of each wiki file with the given format + # Supports the following format subsitutions: + # - {sourceFileLink}: the absolute url to the source file in the repo + customWikiFileHeaderFormat: false + # If set, uses the given format for the commit message to the wiki. Useful to correlate changes to the source. + # Supports the following format subsitutions: + # - {commitMessage}: the latest commit message for HEAD + # - {shaFull}: the full SHA of HEAD + # - {shaShort}: the short SHA of HEAD + # customCommitMessageFormat: # optional