Skip to content

Commit

Permalink
Build only on 1.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
avelicka committed Sep 1, 2023
1 parent ff48887 commit d3249b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_release_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and release ruby gem

on:
pull_request:
branches: [ v1.8.x, feature/build_gem ]
branches: [ v1.8.x ]
push:
workflow_dispatch:

Expand All @@ -25,7 +25,7 @@ jobs:
echo "::set-output name=gem_version::v$(bundle exec rake version)"
- name: Release
if: success()
if: success() && github.ref == 'refs/heads/v1.8.x'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
Expand All @@ -36,7 +36,7 @@ jobs:
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"

- name: Tag repo with new gem version
if: success() && github.ref == 'refs/heads/master'
if: success() && github.ref == 'refs/heads/v1.8.x'
uses: actions/github-script@v3
with:
github-token: ${{ github.token }}
Expand Down

0 comments on commit d3249b5

Please sign in to comment.