Skip to content

Commit

Permalink
Reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Jan 20, 2024
1 parent 03638f6 commit 378ad52
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ jobs:
with:
ruby-version: 2.6

- name: Check if version exists
id: checkversionexists
run: |
rake check_version
echo "VERSION_EXISTS=$?" >> $GITHUB_OUTPUT
- name: Publish to GPR
if: steps.checkversionexists.outputs.VERSION_EXISTS == '0'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
Expand All @@ -36,12 +43,6 @@ jobs:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}

- name: Check if version exists
id: checkversionexists
run: |
rake check_version
echo "VERSION_EXISTS=$?" >> $GITHUB_OUTPUT
- name: Publish to RubyGems
if: steps.checkversionexists.outputs.VERSION_EXISTS == '0'
run: |
Expand Down

0 comments on commit 378ad52

Please sign in to comment.