Skip to content

Commit

Permalink
Update upload artifact action to v4 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Dec 12, 2024
1 parent 91f91c9 commit 3310663
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ on:

jobs:
build:
if: github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main'
if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.workflow_id == github.event.workflow_run.workflow_id &&
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency: build-and-publish

steps:
- name: Checkout repository
Expand All @@ -27,7 +31,7 @@ jobs:
run: npm run build

- name: Publish to GitHub
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: action
path: dist

0 comments on commit 3310663

Please sign in to comment.