Sha256: 8dbc0e89bdd25259f68a8868241e497b9f2717612efd8acaa3af9ad2a277c470
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
name: Build and release gem on: release: types: [published] jobs: release: name: Release to gem hosts runs-on: ubuntu-latest steps: - name: Setup ruby uses: actions/setup-ruby@v1 - uses: actions/checkout@v2 with: fetch-depth: 0 - run: git fetch origin +refs/tags/*:refs/tags/* - name: Setup credentials and versioning run: | gem install git-lite-version-bump keycutter mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials printf -- ":github: Bearer ${GPR_API_KEY}\n" >> $HOME/.gem/credentials env: RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} GPR_API_KEY: ${{secrets.GITHUB_TOKEN}} - name: Build gem run: gem build *.gemspec - name: Publish to RubyGems run: | gem push --KEY rubygems --host https://rubygems.org *.gem - name: Publish to GPR run: | gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem env: OWNER: mitre
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emasser-1.0.0 | .github/workflows/release.yml |