Skip to content

Commit

Permalink
Slim down pipeline.yml and fix tag fetching.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Mar 22, 2024
1 parent 2b97065 commit 03a64fa
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run code checks
Expand All @@ -31,8 +30,7 @@ jobs:
- uses: actions/checkout@v4
- name: Remove `Gemfile.lock` because this is a matrix job
run: rm Gemfile.lock
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand All @@ -57,6 +55,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: webfactory/ssh-agent@v0.9.0
with:
Expand All @@ -67,8 +66,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Expose GitHub Runtime for cache
uses: crazy-max/ghaction-github-runtime@v3
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build and deploy using Kamal
Expand All @@ -82,17 +80,16 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build the gem
run: gem build rest_framework.gemspec -o rest_framework.gem
- name: Display VERSION
run: cat VERSION
# Ensure tag is proper before re-enabling this step.
# - name: Push to RubyGems
# env:
# GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
# run: gem push rest_framework.gem
- name: Push to RubyGems
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: gem push rest_framework.gem

0 comments on commit 03a64fa

Please sign in to comment.