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
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on :
release:
types: [published]

jobs:
push:
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

# If you configured a GitHub environment on RubyGems, you must use it here.
environment: release

steps:
# Set up
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@v1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby
name: Run tests

on:
push:
Expand Down
8 changes: 4 additions & 4 deletions alns.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# frozen_string_literal: true

Gem::Specification.new do |s|
require './lib/alns/version'

ALNS::GEMSPEC = Gem::Specification.new do |s|
s.name = 'alns'
s.version = '0.1.0'
s.version = ALNS::VERSION
s.summary = 'Adaptive Large Neighbourhood Search'
s.description = ''
s.authors = ['bibenga']
s.email = 'bibenga@users.noreply.github.com'
s.files = Dir['LICENSE', 'lib/**/*.rb']
s.require_paths = ['lib']
# s.homepage = 'https://rubygems.org/gems/example'
s.homepage = 'https://github.com/bibenga/alns-ruby'
s.metadata = { 'source_code_uri' => 'https://github.com/bibenga/alns-ruby' }
s.license = 'MIT'
Expand Down
5 changes: 5 additions & 0 deletions lib/alns/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module ALNS
VERSION = '0.1.1'
end