From da58ba18624a548a8e0adc88c23f809afc91f062 Mon Sep 17 00:00:00 2001 From: Aaftakhov Date: Tue, 25 Aug 2020 11:10:46 +0500 Subject: [PATCH] workflow for testing action --- .github/workflows/allure-report.yml | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/allure-report.yml 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