We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51fe814 commit 24931b2Copy full SHA for 24931b2
1 file changed
.github/workflows/publish.yaml
@@ -6,6 +6,18 @@ on:
6
types:
7
- published
8
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
+
21
permissions:
22
contents: read # Default token to read
23
@@ -81,6 +93,7 @@ jobs:
81
93
target/assets/*
82
94
83
95
- name: generate cultivator token
96
+ if: ${{ github.event_name == 'release' }}
84
97
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
85
98
id: generate-token
86
99
with:
0 commit comments