-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
b7ca52a
commit d509934
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
.github/workflows/publish-rubygem.yml → .github/workflows/yank-rubygem.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |