Skip to content

Commit 4aa0547

Browse files
committed
fix: allow for manual trigger the parts of the deployment that are not cargo specific
1 parent 9718d54 commit 4aa0547

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@ on:
66
paths-ignore:
77
- "**/docs/**"
88
- "**.md"
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
type: string
13+
description: "Version"
14+
required: true
15+
default: "0.1.0"
916

1017
jobs:
1118
# call out to build.yml
1219
doing-a-build:
1320
uses: sassman/t-rec-rs/.github/workflows/build.yml@main
1421

1522
publish:
23+
if: github.event_name == 'push' && contains(github.event.ref, 'refs/tags/v')
1624
name: post / cargo publish
1725
needs: [doing-a-build]
1826
runs-on: macos-latest
@@ -34,7 +42,7 @@ jobs:
3442
needs: [publish]
3543
runs-on: macos-latest
3644
steps:
37-
- uses: mislav/bump-homebrew-formula-action@v1
45+
- uses: mislav/bump-homebrew-formula-action@v3
3846
with:
3947
formula-name: t-rec
4048
env:
@@ -68,7 +76,7 @@ jobs:
6876
id: create_release
6977
uses: actions/create-release@v1
7078
env:
71-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
79+
GITHUB_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
7280
with:
7381
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object.
7482
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps

0 commit comments

Comments
 (0)