Skip to content

Commit

Permalink
Restore release action
Browse files Browse the repository at this point in the history
  • Loading branch information
camdenmoors committed Jan 20, 2022
1 parent 3e2c6ea commit b2e4e3c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Build and release gem

on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

jobs:
release:
Expand Down Expand Up @@ -34,13 +32,11 @@ jobs:
run: gem build -C emass_client/ruby_client/ emass_client.gemspec
- name: Publish to RubyGems
run: |
#gem push --KEY rubygems --host https://rubygems.org *.gem
#gem push --KEY rubygems --host https://rubygems.org emass_client/ruby_client/*.gem
gem push --KEY rubygems --host https://rubygems.org *.gem
gem push --KEY rubygems --host https://rubygems.org emass_client/ruby_client/*.gem
- name: Publish to GPR
run: |
#gem push --KEY github --host https://rubygems.pkg.github.com/mitre *.gem
ls -la
ls -la emass_client/ruby_client
gem push --KEY github --host https://rubygems.pkg.github.com/mitre *.gem
gem push --KEY github --host https://rubygems.pkg.github.com/mitre emass_client/ruby_client/*.gem
env:
OWNER: mitre

0 comments on commit b2e4e3c

Please sign in to comment.