diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 5163ea9..41c913d 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -38,7 +38,7 @@ jobs: docker-version: ${{ env.DOCKER_VERSION }} - name: List files after build - run: ls -R # List all the files to ensure artifact is generated + run: ls -R - name: Save Writerside artifact with build results uses: actions/upload-artifact@v4 @@ -47,7 +47,7 @@ jobs: path: | artifacts/${{ env.ARTIFACT }} # Artifact saved inside artifacts folder artifacts/report.json # Optional: any reports generated - retention-days: 7 # Keep artifacts for 7 days + retention-days: 7 - name: Unzip and list Writerside artifact run: | @@ -57,12 +57,12 @@ jobs: - name: Configure GitHub Pages uses: actions/configure-pages@v4 with: - enablement: true # Enable GitHub Pages if not already enabled + enablement: true - name: Upload Writerside content to GitHub Pages uses: actions/upload-pages-artifact@v3 with: - path: dir # Upload the unzipped directory content + path: dir - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4 diff --git a/package.json b/package.json index c9457d5..1d447c5 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "license": "MPL-2.0", "exports": { + "./gh-docs-actions": "./.github/workflows/deploy_docs.yml", "./commitlint": "./src/commitlint/index.js", "./semantic-release": "./src/semantic-release/index.js", "./eslint/base": "./src/eslint/eslint.base.js",