From 647f1a8d62da21468f845afa67a945927b85d8d2 Mon Sep 17 00:00:00 2001 From: Link Date: Fri, 25 Dec 2020 12:59:11 +0800 Subject: [PATCH] ci: upload test results --- .github/workflows/deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4dd6e0c6..864bc6a3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -87,6 +87,22 @@ jobs: install: false command: yarn test:run + - name: Tar test video + run: | + tar -zcvf ./tests/e2e/video.tar.gz ./tests/e2e/video + ll + + - name: Upload test video + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + run: | + cd tests/e2e + git init + git add . + git commit -m "Github Action auto commit" + git branch -M main + git push --force --quiet "https://$ACCESS_TOKEN@github.com/hq001/test_video.git" main:main + build: name: Yarn build