Skip to content

Commit

Permalink
Add workflow to yank gem (#88)
Browse files Browse the repository at this point in the history
This gem has been deprecated and is not used by anyone outside OPSS, so yank it from RubyGems.org using the new workflow.
  • Loading branch information
rubenarakelyan authored Jun 5, 2023
1 parent b7ca52a commit d509934
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: Publish gem to RubyGems.org
name: Yank gem from RubyGems.org

on:
release:
types: [published]

jobs:
push:
name: "Build gem and run gem push"
name: "Run gem yank"
runs-on: ubuntu-latest
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
BUILT_GEM_NAME: "govuk-design-system-rails-${{ github.ref_name }}.gem"
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- name: Build and push
- name: Yank
run: |
gem build govuk-design-system-rails.gemspec --output $BUILT_GEM_NAME
gem push $BUILT_GEM_NAME
- uses: actions/upload-artifact@v3
with:
path: ${{ env.BUILT_GEM_NAME }}
gem yank govuk-design-system-rails -v 0.10.1
gem yank govuk-design-system-rails -v 0.10.2
gem yank govuk-design-system-rails -v 0.10.3

0 comments on commit d509934

Please sign in to comment.