Skip to content

Commit d509934

Browse files
Add workflow to yank gem (#88)
This gem has been deprecated and is not used by anyone outside OPSS, so yank it from RubyGems.org using the new workflow.
1 parent b7ca52a commit d509934

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
name: Publish gem to RubyGems.org
1+
name: Yank gem from RubyGems.org
22

33
on:
44
release:
55
types: [published]
66

77
jobs:
88
push:
9-
name: "Build gem and run gem push"
9+
name: "Run gem yank"
1010
runs-on: ubuntu-latest
1111
env:
1212
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
1313
BUILT_GEM_NAME: "govuk-design-system-rails-${{ github.ref_name }}.gem"
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: ruby/setup-ruby@v1
17-
- name: Build and push
17+
- name: Yank
1818
run: |
19-
gem build govuk-design-system-rails.gemspec --output $BUILT_GEM_NAME
20-
gem push $BUILT_GEM_NAME
21-
- uses: actions/upload-artifact@v3
22-
with:
23-
path: ${{ env.BUILT_GEM_NAME }}
19+
gem yank govuk-design-system-rails -v 0.10.1
20+
gem yank govuk-design-system-rails -v 0.10.2
21+
gem yank govuk-design-system-rails -v 0.10.3

0 commit comments

Comments
 (0)