Sha256: e2ea99f503a1ab2ed7c66df3a9825183107d94e336a9b9437db521155383d7ff
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
name: Publish Gem (Manual) on: workflow_dispatch: inputs: release_password: description: "Enter Release Password" required: true default: "" jobs: release: runs-on: ubuntu-20.04 name: Publish Gem steps: - name: Set ENV run: | echo "release password: ${{secrets.RELEASE_PASSWORD}}" echo "release_password=${{secrets.RELEASE_PASSWORD}}" >> $GITHUB_ENV - name: Checkout if: github.event.inputs.release_password == env.release_password uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 if: github.event.inputs.release_password == env.release_password with: ruby-version: 3.0 bundler-cache: true - name: Run Rubocop if: github.event.inputs.release_password == env.release_password run: bundle exec rubocop lib - name: Run Test if: github.event.inputs.release_password == env.release_password run: bundle exec rspec - name: Publish if: github.event.inputs.release_password == env.release_password env: RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials gem build *.gemspec gem push *.gem
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mutils-1.3.3 | .github/workflows/publish-gem.yml |
mutils-1.3.2 | .github/workflows/publish-gem.yml |
mutils-1.3.1 | .github/workflows/publish-gem.yml |