Skip to content

Commit

Permalink
Release only new tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gryphon committed Oct 7, 2024
1 parent 92b2d34 commit 3f2719a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,3 @@ jobs:
# ruby-version: head
# - name: Run style checks
# run: bundle exec rubocop
push:
name: Push gem to RubyGems.org
runs-on: ubuntu-latest

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag

steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@v1
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

# push: This runs every time a new commit is pushed to GitHub.
# pull_request: This runs every time a new pull request is made, which allows forks to trigger CI
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /

jobs:
push:
name: Push gem to RubyGems.org
runs-on: ubuntu-latest

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag

steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@v1

0 comments on commit 3f2719a

Please sign in to comment.