Skip to content

ci: Use appropriate config #31

ci: Use appropriate config

ci: Use appropriate config #31

---
name: Release Please
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
name: Process Release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/[email protected]
id: release
outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
publish:
needs: release

Check failure on line 26 in .github/workflows/release-please.yaml

View workflow run for this annotation

GitHub Actions / Release Please

Invalid workflow file

The workflow is not valid. .github/workflows/release-please.yaml (Line: 26, Col: 12): Job 'publish' depends on unknown job 'release'.
name: Publish Gems
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.paths_released != '[]'}}
strategy:
fail-fast: false
max-parallel: 1
matrix:
path: ${{ fromJson(needs.release.outputs.paths_released) }}
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Configure RubyGems
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
- uses: ruby/[email protected]
with:
ruby-version: "3.0"
bundler: latest
bundler-cache: false
working-directory: ${{ matrix.path }}
- name: Publish to RubyGems
working-directory: ${{ matrix.path }}
run: |
bundle exec rake --trace build
bundle exec rake --trace release:rubygem_push