Sha256: fee6a22c65233df88e91dfc8c8d1db533a47fdcff75a55be703ec7a528a46485

Contents?: true

Size: 875 Bytes

Versions: 23

Compression:

Stored size: 875 Bytes

Contents

name: Publish Gem

on:
  push:
    tags:
      - "v*"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@master

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.0"

      - name: Setup Release Credentials
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
        run: |
          mkdir -p $HOME/.gem
          touch $HOME/.gem/credentials
          chmod 600 $HOME/.gem/credentials
          echo "---" >$HOME/.gem/credentials
          echo ":github: Bearer ${GITHUB_TOKEN}" >> $HOME/.gem/credentials
      - name: Publish Gem to GitHub Packages
        run: |
          export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
          gem build *.gemspec
          gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
discorb-0.20.0 .github/workflows/package_register.yml
discorb-0.19.0 .github/workflows/package_register.yml
discorb-0.18.1 .github/workflows/package_register.yml
discorb-0.18.0 .github/workflows/package_register.yml
discorb-0.17.1 .github/workflows/package_register.yml
discorb-0.17.0 .github/workflows/package_register.yml
discorb-0.16.0 .github/workflows/package_register.yml
discorb-0.15.1 .github/workflows/package_register.yml
discorb-0.15.0 .github/workflows/package_register.yml
discorb-0.14.0 .github/workflows/package_register.yml
discorb-0.13.4 .github/workflows/package_register.yml
discorb-0.13.3 .github/workflows/package_register.yml
discorb-0.13.2 .github/workflows/package_register.yml
discorb-0.13.1 .github/workflows/package_register.yml
discorb-0.13.0 .github/workflows/package_register.yml
discorb-0.12.4 .github/workflows/package_register.yml
discorb-0.12.3 .github/workflows/package_register.yml
discorb-0.12.2 .github/workflows/package_register.yml
discorb-0.12.1 .github/workflows/package_register.yml
discorb-0.12.0 .github/workflows/package_register.yml