diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2f6bebc..f1c24eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,31 +1,37 @@ -name: ci +name: ci + on: push: branches: - main + permissions: contents: write + jobs: deploy: runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Build PT docs uses: ./ with: entrypoint: mkdocs args: build --config-file=mkdocs.pt.yml + - name: Build EN docs uses: ./ with: entrypoint: mkdocs args: build --config-file=mkdocs.en.yml - # - name: Copy redirect index page - # run: sudo cp /index.html /site + - name: Copy redirect index page + run: cp docs/index.html site/index.html - uses: actions/setup-python@v4 with: @@ -41,7 +47,11 @@ jobs: with: key: ${{ github.ref }} path: .cache + - run: pip install mkdocs-material + - run: pip install mike --force-reinstall --verbose + # - run: mike deploy --push --update-aliases 1.0 latest --ignore - # - run: mkdocs gh-deploy --force \ No newline at end of file + + # - run: mkdocs gh-deploy --force diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..1f3e713 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,10 @@ + + +
+ +