Skip to content

Commit

Permalink
Add actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Leigh Gordon committed Nov 30, 2020
1 parent e753db5 commit 618efa6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Ruby Gem

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Build gem
run: |
gem build *.gemspec
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: master
release_name: Release master
draft: false
prerelease: false
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: knife-solo-*.gem
tag: master
overwrite: true
file_glob: true

0 comments on commit 618efa6

Please sign in to comment.