Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test new version and new option to automatic release #3

Merged
merged 1 commit into from
Feb 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
- uses: marceloprado/has-changed-path@v1
id: changed-version
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
with:
paths: lib/miga/version.rb

- name: Tag and deploy
if: steps.changed-version.outputs.changed == 'true'
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.BUNDLE_GITHUB__COM}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_BUMP_RELEASE}}
GITHUB_TOKEN: "${{ secrets.BUNDLE_GITHUB__COM }}"
RUBYGEMS_API_KEY: "${{ secrets.RUBYGEMS_BUMP_RELEASE }}"
RELEASE_COMMAND: |
gem install bundler
git config --global user.email '[email protected]'
Expand Down