diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml deleted file mode 100644 index 9f60e9c..0000000 --- a/.github/workflows/docs.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Mkdocs Deploy - -on: - push: - branches: - - main - -jobs: - build: - name: Deploy docs - runs-on: ubuntu-latest - steps: - - name: Checkout main - uses: actions/checkout@v2 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: docs/mkdocs.yml - EXTRA_PACKAGES: build-base diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 829b02f..253327f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -65,3 +65,19 @@ jobs: --tag ghcr.io/hay-kot/homebox:nightly \ --build-arg COMMIT=$(git rev-parse HEAD) \ --platform linux/amd64,linux/arm64,linux/arm/v7 . + + deploy-docs: + name: Deploy docs + needs: + - publish + runs-on: ubuntu-latest + steps: + - name: Checkout main + uses: actions/checkout@v2 + + - name: Deploy docs + uses: mhausenblas/mkdocs-deploy-gh-pages@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: docs/mkdocs.yml + EXTRA_PACKAGES: build-base