Skip to content

Commit 76f1a7f

Browse files
hsbtclaude
andcommitted
Add on: push: tags trigger to the workflow example
The example previously showed only the jobs section, which would not actually run on a tag push. Add the complete workflow trigger so readers can copy the example as-is. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent cf8409e commit 76f1a7f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

trusted-publishing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ Once you have a trusted publisher configured, you can use RubyGems' [`release-ge
6262
This looks almost exactly the same as normal, except that you don't need any explicit usernames, passwords, or API tokens: GitHub's OIDC identity provider will take care of everything for you:
6363

6464
```yaml
65+
name: Push gem
66+
67+
on:
68+
push:
69+
tags:
70+
- "v*"
71+
6572
jobs:
6673
push:
6774
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)