Skip to content

1.16.0

1.16.0 #27

Workflow file for this run

---
name: version
run-name: ${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
on:
workflow_dispatch:
inputs:
version:
description: Version to cut
repository_dispatch:
types:
- version
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
ref: ${{ github.event.client_payload.branch }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: ${{ secrets.GIT_USER_NAME }}
git_committer_email: ${{ secrets.GIT_USER_EMAIL }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Setup
uses: ./.github/actions/setup
- name: Cut ${{ github.event.inputs.version }}${{ github.event.client_payload.version }} version
run: bundle exec gem bump --no-commit --file lib/seam/version.rb --version ${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
- name: Update Gemfile.lock
run: |
bundle config set --local deployment 'false'
bundle install
- name: Get meta
id: meta
run: |
version=$(bundle exec parse-gemspec-cli parse seamapi.gemspec | jq -r .version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Tag ${{ github.event.inputs.version }}${{ github.event.client_payload.version }} version
run: |
git add .
git commit --sign -m "${VERSION}"
git tag --sign "v${VERSION}" -m "${VERSION}"
git push --follow-tags
env:
VERSION: ${{ steps.meta.outputs.version }}