Skip to content

Commit 24931b2

Browse files
committed
We do still upload PR artifacts, just skip token gen on release
1 parent 51fe814 commit 24931b2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ on:
66
types:
77
- published
88

9+
# Run on pull requests to publish binaries to pull request workflow runs
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- bin/**
15+
- examples/**
16+
- src/**
17+
- Cargo.*
18+
- rust-toolchain.toml
19+
- .github/workflows/publish.yaml
20+
921
permissions:
1022
contents: read # Default token to read
1123

@@ -81,6 +93,7 @@ jobs:
8193
target/assets/*
8294
8395
- name: generate cultivator token
96+
if: ${{ github.event_name == 'release' }}
8497
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
8598
id: generate-token
8699
with:

0 commit comments

Comments
 (0)