Skip to content

Commit 9f78bcb

Browse files
workflow: run publish_build only on release
This job no longer handles nightly builds, so simplify the checks. Bump download-artifact to v4 while at it.
1 parent b8ce735 commit 9f78bcb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,15 @@ jobs:
6464
publish_build:
6565
runs-on: ubuntu-latest
6666
name: Publish build
67-
if: ${{ success() && !startsWith(github.ref, 'refs/pull') }}
67+
if: ${{ success() && startsWith(github.ref, 'refs/tags') }}
6868
needs: build
6969
steps:
7070
- name: Download artifacts
71-
uses: actions/download-artifact@v3
71+
uses: actions/download-artifact@v4
7272
with:
7373
name: build
7474
path: build
7575
- name: Upload to ${{ github.repository }} release
76-
if: ${{ startsWith(github.ref, 'refs/tags') }}
7776
run: |
7877
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
7978

0 commit comments

Comments
 (0)