Skip to content

Add publishing workflow #2

Add publishing workflow

Add publishing workflow #2

Workflow file for this run

name: Publish packages
on:
push:
tags:
- *

Check failure on line 6 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
jobs:
rubygems:
runs-on: ubuntu-latest
environment: packages
permissions:
id-token: write
defaults:
run:
shell: bash
working-directory: build/ruby
steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
- name: Install gems
run: bundle install
- name: Set version
run: bundle exec rake release:version[${{ github.ref_name }}]
- name: Generate ruby
run: bundle exec rake generate_ruby:all
# Release
- uses: rubygems/[email protected]
- name: Publish gem
run: bundle exec rake release:rubygem_push
- name: Wait for release
run: gem exec rubygems-await pkg/*.gem