Skip to content

Commit

Permalink
ci: zip folder for artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed May 4, 2022
1 parent 0e18405 commit f65e120
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,14 @@ jobs:
GATSBY_GH_APP_GITALK_SECRET: ${{ secrets.GATSBY_GH_APP_GITALK_SECRET }}
GATSBY_ENV: ${{ secrets.GATSBY_ENV }}

- name: Upload as artifact
- name: Zip artifact for test
run: zip e2e.zip ./* -r

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: repo-artifact
path: /
path: e2e.zip
retention-days: 1

E2E-Test:
Expand All @@ -112,6 +115,9 @@ jobs:
with:
name: repo-artifact

- name: unzip artifact
run: unzip release.zip

- name: Serve and E2E test
run: npm run serve & npm run test:e2e; tskill node

Expand Down

0 comments on commit f65e120

Please sign in to comment.