Sha256: 8c4a5dfb768db388f6dd7c85f59cbd76dcedb608be4e06350c2ac05a60d73334
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
name: Release on: push: tags: ['v[0-9]*'] jobs: release: runs-on: macos-latest steps: - name: checkout uses: actions/checkout@v2 - name: ruby 3.2 uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 - name: install gems run: | gem install bundler bundle install --jobs 4 --retry 3 - name: version id: version run: | echo value=$(ruby -e 'print "${{ github.ref }}"[/\/v([\w\.\-]+)/, 1]') >> $GITHUB_OUTPUT - name: create gem run: rake clean gem - name: create release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} draft: false prerelease: false - name: upload to releases uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./processing-${{ steps.version.outputs.value }}.gem asset_name: processing-${{ steps.version.outputs.value }}.gem asset_content_type: application/zip - name: upload to rubygems env: GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }} run: | mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials rake upload
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
processing-0.5.0 | .github/workflows/release.yml |