Skip to content

Commit

Permalink
Change action to build & publish only on v* tags
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorthurlow committed Jan 12, 2024
1 parent d76f291 commit 4c786f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-gems.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
# 👋 Look here for another good example: https://github.com/bytecodealliance/wasmtime-rb/tree/main/.github/workflows
name: Build gems
name: Build, compile, and publish
on:
workflow_dispatch:
push:
branches: ["main", "cross-gem/*"]
tags:
- v*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
tmp/${{ matrix.ruby-platform }}/
if-no-files-found: error

- name: "NOOP: Publish to RubyGems"
- name: "Publish to RubyGems"
id: publish
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
Expand All @@ -97,4 +98,4 @@ jobs:
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
echo pkg/*-${{ matrix.ruby-platform }}.gem
gem push pkg/*-${{ matrix.ruby-platform }}.gem

0 comments on commit 4c786f5

Please sign in to comment.