Skip to content

Commit 3fe14a2

Browse files
refactor GitHub actions; separates build and release
1 parent 31a8471 commit 3fe14a2

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Taskinator
1+
name: Build
22

33
on:
44
push:
55
branches: [ master ]
6-
tags:
7-
- '*'
86

97
pull_request:
108
branches: [ master ]
@@ -28,16 +26,3 @@ jobs:
2826
run: bundle exec rake build
2927
- name: Run tests
3028
run: bundle exec rake spec
31-
32-
publish:
33-
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v*') }}
34-
needs: build
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v3
38-
- name: Release Gem
39-
uses: virtualstaticvoid/publish-rubygems-action@v3
40-
env:
41-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
42-
GIT_NAME: Chris Stefano
43-
GIT_EMAIL: [email protected]

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
9+
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Release Gem
14+
uses: virtualstaticvoid/publish-rubygems-action@v3
15+
env:
16+
GIT_NAME: "Chris Stefano"
17+
GIT_EMAIL: "[email protected]"
18+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Taskinator
22

33
[![Gem Version](https://badge.fury.io/rb/taskinator.svg)](http://badge.fury.io/rb/taskinator)
4-
[![Build Status](https://github.com/virtualstaticvoid/taskinator/actions/workflows/taskinator.yml/badge.svg)](https://github.com/virtualstaticvoid/taskinator/actions/workflows/taskinator.yml)
4+
[![Build Status](https://github.com/virtualstaticvoid/taskinator/actions/workflows/build.yml/badge.svg)](https://github.com/virtualstaticvoid/taskinator/actions/workflows/build.yml)
55
[![Code Climate](https://codeclimate.com/github/virtualstaticvoid/taskinator.png)](https://codeclimate.com/github/virtualstaticvoid/taskinator)
66

77
A simple orchestration library for running complex processes or workflows in Ruby.

0 commit comments

Comments
 (0)