diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6831a012..c8852beb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ on: type: string default: "dev" push: - branches: [ "dev" ] + branches: [ "474-publish-aggregated-cucumber-report" ] schedule: - cron: "0 6 * * *" # every day at 6am UTC @@ -96,6 +96,17 @@ jobs: uses: stCarolas/setup-maven@v5 with: maven-version: 3.9.9 + # Deploy aggregated Cucumber report to GitHub Pages + - name: Adding index.html file to aggregated cucumber report dir + run: | + touch index.html ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports + echo "
If you are not redirected automatically, click here.
" >> ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports/index.html + - name: Delpoy aggregated Cucumber report to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish dir: ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports + destination_dir: cucumber-html-reports # Execute archetype tests - name: Run Archetype Tests run: |