-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (59 loc) · 1.94 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
name: Publish
on:
push:
branches:
- master
workflow_dispatch: {}
concurrency:
# only run one publishing at a time to avoid conflicts
group: publish-${{ github.ref }}
jobs:
publish:
# Only on main repository (no publishing on forks)
if: github.repository_owner == 'halestudio'
uses: wetransform/gha-workflows/.github/workflows/gradle-library-publish.yml@master # TODO use release
with:
java-version: 17
multi-module: true
skip-scan: true
build-tasks: '--continue clean spotlessCheck check :allure:allureAggreggateResults'
upload-artifact-path: allure/build/allure-results
upload-artifact-name: allure-results
secrets:
WETF_ARTIFACTORY_USER: ${{ secrets.WETF_ARTIFACTORY_USER }}
WETF_ARTIFACTORY_PASSWORD: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }}
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
allure:
# https://allurereport.org/docs/integrations-github/
runs-on: ubuntu-latest
if: always() # even if tests fail
needs: publish
permissions:
contents: write
steps:
- name: Download artifact from build
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: allure-results
path: allure-results
- name: Load test report history
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Build test report
uses: simple-elf/[email protected]
if: always()
with:
gh_pages: gh-pages
allure_history: allure-history
allure_results: allure-results
- name: Publish test report
uses: peaceiris/actions-gh-pages@v4
if: always()
with:
publish_branch: gh-pages
publish_dir: allure-history