gh-actions: Add Publish workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |