Sha256: b725bf64bac3a9a3fbe7bcaa0028bed9a253993eb9bd30a8ead6e4bb49e34767
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
name: release on: push: branches: - master jobs: create-release: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GHUB_PAT }} steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - uses: ridedott/release-me-action@master id: get-version-number with: dry-run: true release-rules: | [ { "type": "release", "scope": "major", "release": "major" }, { "type": "refactor", "release": "patch" } ] - uses: actions/setup-ruby@v1 with: ruby-version: "2.6" - run: gem install bundler -v 2.1.2 - name: Set version.rb and Gemfile.lock run: | printf "module Chambermaid\n VERSION = \"$NEW_VERSION\"\nend" > lib/chambermaid/version.rb bundle install env: NEW_VERSION: ${{ steps.get-version-number.outputs.version }} - run: bundle exec rake build - uses: ridedott/release-me-action@master with: commit-assets: | ./lib/chambermaid/version.rb ./Gemfile.lock release-assets: | ./pkg/*.gem release-rules: | [ { "type": "release", "scope": "major", "release": "major" }, { "type": "refactor", "release": "patch" } ] - name: publish to rubygems run: | mkdir -p ~/.gem printf -- "---\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials chmod 0600 ~/.gem/credentials gem push pkg/chambermaid-$NEW_VERSION.gem env: GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} NEW_VERSION: ${{ steps.get-version-number.outputs.version }}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chambermaid-1.0.1 | .github/workflows/release.yml |