Sha256: 1bdcfdf5b647c28a314a8800e049e86984397bb6f7350bdc254808f8d6d1e648
Contents?: true
Size: 1.57 KB
Versions: 6
Compression:
Stored size: 1.57 KB
Contents
name: Bump version and Release on: release: types: [published] jobs: release: runs-on: ubuntu-latest strategy: fail-fast: true steps: - uses: actions/checkout@master with: persist-credentials: false fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - uses: actions/setup-ruby@v1 with: ruby-version: '2.6' - name: Get version from latest tag id: get_version uses: battila7/get-version-action@v2 - name: Bump version run: | gem install -N gem-release git config --local user.email "action@github.com" git config --local user.name "GitHub Action" gem bump --skip-ci --version ${{ steps.get_version.outputs.version-without-v }} - name: Push changes uses: ad-m/github-push-action@master with: # GitHub Actions token does not support pushing to protected branches. # github_token: ${{ secrets.GITHUB_TOKEN }} # # A manually populated`PERSONAL_ACCESS_TOKEN` environment variable # with permissions to push to a protected branch must be used. # not ideal - keep eyes open for a better solution github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Release gem to rubygems.org run: | set +x mkdir -p ~/.gem cat << EOF > ~/.gem/credentials --- :rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }} EOF chmod 0600 ~/.gem/credentials set -x gem release
Version data entries
6 entries across 6 versions & 2 rubygems