Skip to content

Commit

Permalink
Update behave.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robbrad authored Dec 17, 2024
1 parent 0c6dec6 commit 668822a
Showing 1 changed file with 62 additions and 61 deletions.
123 changes: 62 additions & 61 deletions .github/workflows/behave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,64 +223,65 @@ jobs:
with:
name: allure_partial_history_${{ matrix.python-version }}
path: allure_partial_history_${{ matrix.python-version }}.tar
deploy:
name: Deploy Reports
runs-on: ubuntu-latest
needs: report
steps:
# Download Full Artifacts (for schedule/push events)
- uses: actions/download-artifact@v4
name: Download Full Artifacts
if: github.event_name == 'schedule' || github.event_name == 'push'
with:
name: allure_full_history_3.12
path: allure-history/tars/full

# Download Partial Artifacts (for pull_request events)
- uses: actions/download-artifact@v4
name: Download Partial Artifacts
if: github.event_name == 'pull_request'
with:
name: allure_partial_history_3.12
path: allure-history/tars/partial

# Create directories for Full and Partial reports as needed
- name: Create Full Report Directory
if: github.event_name == 'schedule' || github.event_name == 'push'
run: mkdir -p allure-history/full

- name: Create Partial Report Directory
if: github.event_name == 'pull_request'
run: mkdir -p allure-history/partial

# Untar Full Reports
- name: Untar Full Reports
if: github.event_name == 'schedule' || github.event_name == 'push'
run: for i in allure-history/tars/full/*.tar; do tar -xvf "$i" -C allure-history/full; done

# Untar Partial Reports
- name: Untar Partial Reports
if: github.event_name == 'pull_request'
run: for i in allure-history/tars/partial/*.tar; do tar -xvf "$i" -C allure-history/partial; done

# Remove the Tar Files
- name: Remove Tar Reports
run: rm -rf allure-history/tars

# Deploy Full Report (for schedule/push events)
- name: Deploy Full Report
if: github.event_name == 'schedule' || github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history/full

# Deploy Partial Report (for pull_request events)
- name: Deploy Partial Report
if: github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history/partial

deploy:
name: Deploy Reports
runs-on: ubuntu-latest
needs: report
steps:
# Download Full Artifacts (for schedule/push events)
- uses: actions/download-artifact@v4
name: Download Full Artifacts
if: github.event_name == 'schedule' || github.event_name == 'push'
with:
name: allure_full_history_3.12
path: allure-history/tars/full

# Download Partial Artifacts (for pull_request events)
- uses: actions/download-artifact@v4
name: Download Partial Artifacts
if: github.event_name == 'pull_request'
with:
name: allure_partial_history_3.12
path: allure-history/tars/partial

# Create directories for Full and Partial reports as needed
- name: Create Full Report Directory
if: github.event_name == 'schedule' || github.event_name == 'push'
run: mkdir -p allure-history/full

- name: Create Partial Report Directory
if: github.event_name == 'pull_request'
run: mkdir -p allure-history/partial

# Untar Full Reports
- name: Untar Full Reports
if: github.event_name == 'schedule' || github.event_name == 'push'
run: for i in allure-history/tars/full/*.tar; do tar -xvf "$i" -C allure-history/full; done

# Untar Partial Reports
- name: Untar Partial Reports
if: github.event_name == 'pull_request'
run: for i in allure-history/tars/partial/*.tar; do tar -xvf "$i" -C allure-history/partial; done

# Remove the Tar Files
- name: Remove Tar Reports
run: rm -rf allure-history/tars

# Deploy Full Report (for schedule/push events)
- name: Deploy Full Report
if: github.event_name == 'schedule' || github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history/full

# Deploy Partial Report (for pull_request events)
- name: Deploy Partial Report
if: github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history/partial

0 comments on commit 668822a

Please sign in to comment.