Skip to content

Commit

Permalink
Add comment explaining why we use an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanita Barrett committed Jan 18, 2021
1 parent 18f5f25 commit 35c3ffb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI Workflow

on: [push, pull_request]

# Separate build and deploy jobs so we can build all branches and pull requests
# but only deploy from master
jobs:
build:
name: Build & Test
Expand Down Expand Up @@ -30,6 +32,8 @@ jobs:
- name: Lint and test
run: npm test -- --runInBand

# Share data between the build and deploy jobs so we don't need to run `npm run build` again on deploy
# Upload the deploy folder as an artifact so it can be downloaded and used in the deploy job
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 35c3ffb

Please sign in to comment.