Skip to content

Commit

Permalink
Turn off the push gem attempt that isn't working. Add standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmcfadden committed May 17, 2024
1 parent 082d392 commit a7c00c3
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 29 deletions.
62 changes: 33 additions & 29 deletions .github/workflows/push_gem.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
name: Push Gem
# This does not work for some reason. I tried a million ways to follow the documentation but
# I get the same error every time:
# No trusted publisher configured for this workflow found on https://rubygems.org

on:
push:
tags:
- v*

permissions:
contents: read

jobs:
push:
if: github.repository == 'CompanyCam/ghx'
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

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

# Release
- uses: rubygems/release-gem@v1 # v1
#name: Push Gem
#
#on:
# push:
# tags:
# - v*
#
#permissions:
# contents: read
#
#jobs:
# push:
# if: github.repository == 'CompanyCam/ghx'
# runs-on: ubuntu-latest
#
# permissions:
# contents: write
# id-token: write
#
# steps:
# # Set up
# - uses: actions/checkout@v4 # v4.1.5
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1 # v1.176.0
# with:
# bundler-cache: true
# ruby-version: ruby
#
# # Release
# - uses: rubygems/release-gem@v1 # v1
32 changes: 32 additions & 0 deletions .github/workflows/standardrb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a basic workflow to help you get started with Actions

name: Standardrb

# Controls when the action will run.
on:
pull_request:
paths-ignore:
- ".github/**"
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
env:
BUNDLE_DEPLOYMENT: false
BUNDLE_FROZEN: false
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
# Disabled for now because of an issue installing ruby-debug-ide
# with:
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: |
bundle install
bundle exec standardrb

0 comments on commit a7c00c3

Please sign in to comment.