From ede1d5097fb5d2aea5246b1566fb3d443fa18c37 Mon Sep 17 00:00:00 2001 From: Jose Fernandez Duque Date: Thu, 5 Jan 2023 16:58:03 +0100 Subject: [PATCH] Generation of pages was moved to publish phase --- .github/workflows/maven-build.yml | 8 +------- .github/workflows/maven-publish.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index ccf52473..43d05310 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -75,10 +75,4 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Building with Maven - run: mvn clean install -DVERSION=1.0 -DSLEEPTEST=3 -DAGENT_LIST=1,2 -DVARNAME=foo -DWAIT=1 -DPOSTGRES_HOST=localhost -DMYSQL_HOST=localhost -DCLICKHOUSE_HOST=localhost -DREST_SERVER_HOST=localhost -DGRAPHQL_SERVER_HOST=localhost -DDEMO_SITE_HOST=demo-site:4567 -DSELENIUM_GRID=http://localhost:4444/wd/hub -DZOOKEEPER_HOST=localhost -DSCHEMA_REGISTRY_HOST=localhost - - - name: Publish pages - uses: JamesIves/github-pages-deploy-action@v4.4.1 - with: - branch: gh-pages - folder: target/documentation \ No newline at end of file + run: mvn clean install -DVERSION=1.0 -DSLEEPTEST=3 -DAGENT_LIST=1,2 -DVARNAME=foo -DWAIT=1 -DPOSTGRES_HOST=localhost -DMYSQL_HOST=localhost -DCLICKHOUSE_HOST=localhost -DREST_SERVER_HOST=localhost -DGRAPHQL_SERVER_HOST=localhost -DDEMO_SITE_HOST=demo-site:4567 -DSELENIUM_GRID=http://localhost:4444/wd/hub -DZOOKEEPER_HOST=localhost -DSCHEMA_REGISTRY_HOST=localhost \ No newline at end of file diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index e7eefd97..cb2c5021 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -48,3 +48,12 @@ jobs: MAVEN_USERNAME: jose.fernandez MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + + - name: Performing a dry-run to generate pages + run: mvn clean verify -Dcucumber.execution.dry-run=true + + - name: Publish pages + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + branch: gh-pages + folder: target/documentation