Skip to content

Commit

Permalink
Make workflow step names and main check consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Dec 15, 2021
1 parent 49d7e95 commit f6ea469
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ jobs:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: "yarn"
- run: yarn install --frozen-lockfile
- if: github.ref != 'refs/heads/main'
- name: Build artifacts for verification
if: github.ref != 'refs/heads/main'
run: yarn build
- if: github.ref == 'refs/heads/main'
- name: Build artifacts for upload
if: github.ref == 'refs/heads/main'
run: yarn build
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_API_KEY }}
BLOCKNATIVE_API_KEY,: ${{ secrets.BLOCKNATIVE_API_KEY }}
- name: Upload build on main
# A push event is a main merge; build and upload artifacts.
if: github.event_name == 'push'
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
with:
name: extension-builds
Expand Down

0 comments on commit f6ea469

Please sign in to comment.