Skip to content

Commit 13e4285

Browse files
committed
add action to upload tests results to allure-server
1 parent 0b9418a commit 13e4285

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/gh_upload_allure_server_on_ec2.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,11 @@ jobs:
7373
7474

7575

76-
- name: Zip Allure results
77-
if: always()
78-
run: zip -r allure-results.zip allure-results
79-
80-
- name: Upload Allure results to Allure Server on EC2
81-
if: always()
82-
run: |
83-
curl -X POST "http://3.93.58.184:8080/allure-docker-service/projects/my-project/results" \
84-
-H "accept: application/json" \
85-
-H "Authorization: Bearer ${{ secrets.ALLURE_TOKEN }}" \
86-
-H "Content-Type: multipart/form-data" \
87-
-F "results=@allure-results.zip;type=application/zip"
88-
89-
- name: Trigger Allure report generation
90-
if: always()
91-
run: |
92-
curl -X GET "http://3.93.58.184:8080/allure-docker-service/projects/my-project/report" \
93-
-H "Authorization: Bearer ${{ secrets.ALLURE_TOKEN }}"
94-
95-
- name: Output report link
96-
if: always()
97-
run: |
98-
echo "### ✅ [View Allure Report](http://3.93.58.184:8080/projects/my-project/latest/index.html)" >> $GITHUB_STEP_SUMMARY
99-
76+
- name: Send Results and Generate Allure Report
77+
uses: Xotabu4/send-to-allure-server-action@1
78+
if: ${{ always() }}
79+
with:
80+
allure-server-url: 'http://3.93.58.184:8080'
81+
project-id: 'my-project'
82+
results-path: 'allure-results'
10083

0 commit comments

Comments
 (0)