forked from TeleSign/ruby_telesign
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 814 Bytes
/
release.yml
File metadata and controls
25 lines (23 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
name: ParentSquare Release
on:
push:
tags: ['v*']
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to GitHub package repository
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby#publishing-gems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}