Skip to content

fix: Corrects library autoversioning #1

fix: Corrects library autoversioning

fix: Corrects library autoversioning #1

Workflow file for this run

---

Check failure on line 1 in .github/workflows/gem.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/gem.yaml

Invalid workflow file

(Line: 35, Col: 9): 'env' is already defined
name: Publish Ruby Gem
on: # yamllint disable-line rule:truthy
workflow_call:
workflow_dispatch:
jobs:
publish_gem:
name: Publish the gem to registries
runs-on: ubuntu-latest
strategy:
matrix:
registry:
- key: rubygems
secret: RUBYGEMS_TOKEN
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.1
bundler-cache: false
-
name: Publish to ${{ matrix.registry }}
env:
TRACE: ${{ secrets.ACTIONS_STEP_DEBUG || 'false' }}
GEM_TOKEN: ${{ secrets[matrix.registry.secret] }}
REGISTRY: ${{ matrix.registry.key }}
run: |
bundle install
TRACE="$TRACE" GEM_TOKEN="$GEM_TOKEN" ./ci/publish-gem.sh "$REGISTRY"
shell: bash
env:
GEM_NAME: linear-cli