diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be618e7..f4cbdee 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,19 +35,18 @@ env: jobs: build: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Build Writerside docs using Docker + - name: Build docs using Writerside Docker builder uses: JetBrains/writerside-github-action@v4 with: instance: ${{ env.INSTANCE }} artifact: ${{ env.ARTIFACT }} docker-version: ${{ env.DOCKER_VERSION }} - - name: Upload documentation + - name: Save artifact with build results uses: actions/upload-artifact@v4 with: name: docs @@ -55,24 +54,9 @@ jobs: artifacts/${{ env.ARTIFACT }} artifacts/report.json retention-days: 7 - - # Add the step below to upload Algolia indexes - - name: Save artifact with build results - uses: actions/upload-artifact@v4 - with: - name: docs - path: | - artifacts/${{ env.ARTIFACT }} - artifacts/report.json - artifacts/${{ env.ALGOLIA_ARTIFACT }} - retention-days: 7 - - # Add the job below and artifacts/report.json on Upload documentation step above if you want to fail the build when documentation contains errors test: - # Requires build job results needs: build runs-on: ubuntu-latest - steps: - name: Download artifacts uses: actions/download-artifact@v4 @@ -84,16 +68,14 @@ jobs: uses: JetBrains/writerside-checker-action@v1 with: instance: ${{ env.INSTANCE }} - deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - # Requires the build job results - needs: test + needs: [build, test] runs-on: ubuntu-latest steps: - - name: Download artifact + - name: Download artifacts uses: actions/download-artifact@v4 with: name: docs @@ -104,7 +86,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 - - name: Upload artifact + - name: Package and upload Pages artifact uses: actions/upload-pages-artifact@v3 with: path: dir @@ -112,7 +94,6 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - publish-indexes: needs: [ build, test, deploy ] runs-on: ubuntu-latest