Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/rake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: rake

permissions:
contents: read

on:
push:
branches: [ master, main ]
tags: [ v* ]
pull_request:
workflow_dispatch:

jobs:
rake:
uses: metanorma/ci/.github/workflows/generic-rake.yml@main
57 changes: 21 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,27 @@
name: Release

on:
push:
tags:
- "v*"
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: release

permissions:
contents: write
packages: write

on:
workflow_dispatch:
inputs:
next_version:
description: |
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
required: true
default: "skip"
repository_dispatch:
types: [do-release]

jobs:
release:
name: Build and publish
runs-on: ubuntu-latest
environment: release

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true

- name: Build gem
run: bundle exec rake build

- name: Publish to rubygems.org
env:
EMFSVG_RUBYGEMS_API_KEY: ${{ secrets.EMFSVG_RUBYGEMS_API_KEY }}
run: |
mkdir -p ~/.gem
printf '---\n:rubygems_api_key: %s\n' "$EMFSVG_RUBYGEMS_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
gem push pkg/emfsvg-*.gem

- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: pkg/emfsvg-*.gem
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
with:
next_version: ${{ github.event.inputs.next_version }}
secrets:
rubygems-api-key: ${{ secrets.CLARICLE_CI_RUBYGEMS_API_KEY }}
pat_token: ${{ secrets.GITHUB_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.