Skip to content

Commit

Permalink
gh-actions: Add Publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
steffansluis committed Oct 30, 2023
1 parent 86a63b5 commit f7470df
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish
on: [push]
jobs:
publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
mkdir ~/.gem
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
chmod 600 ~/.gem/credentials
- run: gem build fast_excel.gemspec
- run: gem push --key github --host https://rubygems.pkg.github.com/feedbackfruits fast_excel-*.gem

0 comments on commit f7470df

Please sign in to comment.