-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn off the push gem attempt that isn't working. Add standard.
- Loading branch information
1 parent
082d392
commit a7c00c3
Showing
2 changed files
with
65 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |