diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b2d306..d1bf515 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,32 +87,3 @@ jobs: uses: ./.github/workflows/reference-docs.yml with: tag: ${{ github.ref_name }} - - docs: - needs: unit - runs-on: ubuntu-latest - # Only tagged versions get published, so the site always describes a release - # rather than whatever main happens to be. - if: startsWith(github.ref, 'refs/tags/') - permissions: - contents: read - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deploy.outputs.page_url }} - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: 'maven' - - name: Generate javadoc - run: mvn -B javadoc:javadoc - - uses: actions/configure-pages@v5 - - uses: actions/upload-pages-artifact@v3 - with: - path: target/site/apidocs - - id: deploy - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/pages-redirect.yml b/.github/workflows/pages-redirect.yml new file mode 100644 index 0000000..1321d0e --- /dev/null +++ b/.github/workflows/pages-redirect.yml @@ -0,0 +1,36 @@ +name: Pages redirect + +# The reference documentation of this project is published on www.qtsurfer.com. The GitHub Pages site of +# this repository only redirects there, so that the links already published in package metadata and +# release notes keep working. The pages to serve are in pages-redirect/. +on: + push: + branches: [main] + paths: + - pages-redirect/** + - .github/workflows/pages-redirect.yml + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 + with: + path: pages-redirect + - id: deploy + uses: actions/deploy-pages@v4 diff --git a/pages-redirect/404.html b/pages-redirect/404.html new file mode 100644 index 0000000..af87533 --- /dev/null +++ b/pages-redirect/404.html @@ -0,0 +1,26 @@ + + +
+ + + +The reference documentation of sdk-java now lives at
+www.qtsurfer.com/reference/sdk-java/latest/.
The reference documentation of sdk-java now lives at
+www.qtsurfer.com/reference/sdk-java/latest/.