diff --git a/.github/workflows/allure-report.yml b/.github/workflows/allure-report.yml new file mode 100644 index 0000000..fa03239 --- /dev/null +++ b/.github/workflows/allure-report.yml @@ -0,0 +1,47 @@ +name: allure-report + +on: + release: + types: + - created + push: + branches-ignore: + - '!master' + +jobs: + allure: + name: Generate Allure Report + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Get Allure history + uses: actions/checkout@v2 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Allure Report action from marketplace + uses: simple-elf/allure-report-action@master + if: always() + #id: allure-report + with: + allure_results: allure-results + #gh_pages: gh-pages + #allure_report: allure-report + allure_history: allure-history + + - name: Deploy report to Github Pages + if: always() + uses: peaceiris/actions-gh-pages@v2 + env: + PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: allure-history \ No newline at end of file