diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml new file mode 100644 index 0000000..927d047 --- /dev/null +++ b/.github/workflows/push_gem.yml @@ -0,0 +1,30 @@ +name: Push Gem + +on: + push: + tags: + - v* + +permissions: + contents: read + +jobs: + push: + if: github.repository == 'CompanyCam/ghx' + runs-on: ubuntu-latest + + permissions: + contents: write + id-token: write + + steps: + # Set up + - uses: actions/checkout@v4 # v4.1.5 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 # v1.176.0 + with: + bundler-cache: true + ruby-version: ruby + + # Release + - uses: rubygems/release-gem@v1 # v1 \ No newline at end of file diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..09b166a --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +require 'bundler' +Bundler::GemHelper.install_tasks \ No newline at end of file