From f9e180b93c5d6cb206511e5b323eafbb253e41cf Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Fri, 10 May 2024 22:30:42 +0200 Subject: [PATCH] chore: upload test video as test artifact --- .github/workflows/ui-test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ui-test.yml b/.github/workflows/ui-test.yml index 13cfc512..0a1f6199 100644 --- a/.github/workflows/ui-test.yml +++ b/.github/workflows/ui-test.yml @@ -16,5 +16,17 @@ jobs: run: yarn build - name: Install Packages run: yarn ui-test - - uses: actions/upload-artifact@v4 - with: ui-test.* + - uses: hkusu/s3-upload-action@v2 + id: upload # specify some ID for use in subsequent steps + with: + aws-access-key-id: ${{ secrets.AWS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: 'eu-central-1' + aws-bucket: ${{ secrets.AWS_BUCKET }} + file-path: './ui-test.gif' + content-type: image/gif + output-file-url: 'true' # specify true + - name: Show URL + run: echo '${{ steps.upload.outputs.file-url }}' + id: artifact-upload-step + - run: echo '![test](${{ steps.upload.outputs.file-url }})' >> $GITHUB_STEP_SUMMARY