-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f4cabc
commit 518c32b
Showing
4 changed files
with
105 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build gem | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
inputs: | ||
release_tag: | ||
description: "Release tag" | ||
required: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-gem: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: ruby | ||
|
||
- name: Get tag | ||
id: get-tag | ||
run: echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Build gem | ||
run: gem build good_audible_story_sync.gemspec -o good-audible-story-sync-${SOURCE_TAG}.gem | ||
env: | ||
SOURCE_TAG: ${{ env.SOURCE_TAG }} | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: good-audible-story-sync-${SOURCE_TAG}.gem | ||
tag_name: ${{ github.event.inputs.release_tag }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
SOURCE_TAG: ${{ env.SOURCE_TAG }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require_relative "lib/good_audible_story_sync/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "good_audible_story_sync" | ||
s.version = GoodAudibleStorySync::VERSION | ||
s.summary = "Command-line tool to sync your read books from Audible to Storygraph and, eventually, Goodreads." | ||
s.description = "Interactive script to mark books as finished as well as set the finish date on Storygraph, based on your Audible activity." | ||
s.authors = ["Sarah Vessels"] | ||
s.email = "cheshire137@gmail.com" | ||
s.files = Dir['lib/**/*'] + %w[LICENSE README.md] | ||
s.bindir = "bin" | ||
s.require_paths = ["lib"] | ||
s.executables = ["good-audible-story-sync"] | ||
s.homepage = "https://github.com/cheshire137/good-audible-story-sync" | ||
s.license = "MIT" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
module GoodAudibleStorySync | ||
VERSION = "0.0.1" | ||
end |