Skip to content

Commit

Permalink
workflow for testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
simple-elf committed Aug 25, 2020
1 parent d678d3b commit da58ba1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/allure-report.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da58ba1

Please sign in to comment.