Skip to content

Commit

Permalink
Add Action for gem publishing (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Giffney authored Apr 14, 2023
1 parent 2674ba9 commit dcd8d20
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'

- name: Publish to RubyGems
run: |
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.0.2] - 2023-04-14
### Added
- Update of gemspec to reflect organisation renaming
- Add GitHub Actions for CI

## [0.0.1] - 2014
### Added
- Initial gem
2 changes: 0 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Copyright (c) 2014 John D'Agostino

MIT License

Permission is hereby granted, free of charge, to any person obtaining
Expand Down

0 comments on commit dcd8d20

Please sign in to comment.