diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c240fb3b82b..b9408d22e48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -221,13 +221,13 @@ jobs: docker logs $(docker ps | grep front | cut -f 1 -d ' ') > logs/front.log - name: Upload test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: playwright-results path: ./tests/sanity/playwright-report/ - name: Get Allure history uses: actions/checkout@v4 - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} continue-on-error: true with: ref: gh-pages @@ -243,12 +243,12 @@ jobs: allure_history: allure-history - name: Upload allure test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: allure-report path: ./allure-report/ - name: Deploy report to Github Pages - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} uses: peaceiris/actions-gh-pages@v3 with: PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -256,7 +256,7 @@ jobs: PUBLISH_DIR: allure-history - name: Upload Logs if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-logs path: ./tests/sanity/logs