Skip to content

Replace invalid UTF-8 chars when encoding, more targeted rescue, bump… #9

Replace invalid UTF-8 chars when encoding, more targeted rescue, bump…

Replace invalid UTF-8 chars when encoding, more targeted rescue, bump… #9

Workflow file for this run

name: Build gem
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
release_tag:
description: "Release tag"
required: true
permissions:
contents: write
jobs:
build-gem:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Get tag
id: get-tag
run: echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Install dependencies
run: bundle install
- name: Build gem
run: gem build project_pull_mover.gemspec -o project_pull_mover-${SOURCE_TAG}.gem
env:
SOURCE_TAG: ${{ env.SOURCE_TAG }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: project_pull_mover-${SOURCE_TAG}.gem
tag_name: ${{ github.event.inputs.release_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
env:
SOURCE_TAG: ${{ env.SOURCE_TAG }}