diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 4aed7363e7..ef534730a7 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -2,7 +2,7 @@ name: github-pages on: push: paths: - - 'docs/*.md' + - 'docs/*' - 'README.md' branches: - master @@ -17,14 +17,14 @@ jobs: TOKEN: ${{secrets.CI_TOKEN}} run: | git clone https://vika:${TOKEN}@github.com/VictoriaMetrics/VictoriaMetrics.github.io.git gpages - cp docs/*.md gpages + cp docs/* gpages cp README.md gpages cd gpages git config --local user.email "info@victoriametrics.com" git config --local user.name "Vika" - git add "*.md" + git add . git commit -m "update github pages" remote_repo="https://vika:${TOKEN}@github.com/VictoriaMetrics/VictoriaMetrics.github.io.git" git push "${remote_repo}" cd .. - rm -rf gpages \ No newline at end of file + rm -rf gpages diff --git a/.github/workflows/wiki.yml b/.github/workflows/wiki.yml index 95c9ec59ae..9fb7ca4442 100644 --- a/.github/workflows/wiki.yml +++ b/.github/workflows/wiki.yml @@ -2,7 +2,7 @@ name: wiki on: push: paths: - - 'docs/*.md' + - 'docs/*' branches: - master jobs: @@ -17,13 +17,13 @@ jobs: run: | cd docs git clone https://vika:${TOKEN}@github.com/VictoriaMetrics/VictoriaMetrics.wiki.git wiki - find ./ -name '*.md' -exec cp -prv '{}' 'wiki' ';' + find ./ -name '*' -exec cp -prv '{}' 'wiki' ';' cd wiki git config --local user.email "info@victoriametrics.com" git config --local user.name "Vika" - git add "*.md" + git add . git commit -m "update wiki pages" remote_repo="https://vika:${TOKEN}@github.com/VictoriaMetrics/VictoriaMetrics.wiki.git" git push "${remote_repo}" cd .. - rm -rf wiki \ No newline at end of file + rm -rf wiki