tirbofish/dropbear · diff
fingers crossed this works:
using github pages instead of github package repository (which required user auth) for publishing the package
Signature present but could not be verified.
Unverified
@@ -1,10 +1,12 @@ -name: Deploy Dokka Documentation +name: Publish Documentation and Maven Repository on: push: branches: - - main # Change to your default branch if different - workflow_dispatch: # Allows manual trigger + - main + release: + types: [created] + workflow_dispatch: permissions: contents: read @@ -42,10 +44,37 @@ jobs: - name: Generate Dokka documentation run: ./gradlew dokkaGenerate + - name: Publish to Maven Local + run: ./gradlew publishAllPublicationsToGitHubPagesRepository + + - name: Prepare GitHub Pages content + run: | + mkdir -p pages_content + # Copy Maven repo to root + cp -r build/repo/* pages_content/ || true + # Copy Dokka docs to /docs subdirectory + mkdir -p pages_content/docs + cp -r build/dokka/html/* pages_content/docs/ || true + # Create index.html that redirects to docs + cat > pages_content/index.html << 'EOF' + <!DOCTYPE html> + <html> + <head> + <meta charset="utf-8"> + <title>Redirecting...</title> + <meta http-equiv="refresh" content="0; url=./docs/"> + <link rel="canonical" href="./docs/"> + </head> + <body> + <p>Redirecting to <a href="./docs/">documentation</a>...</p> + </body> + </html> + EOF
Large diffs are not rendered by default. Showing the first 50 of 170 lines. Show full diff