Sha256: 3579ebf609bb3878f95103eb86a7f52ee87f6d6fe68bbcc623fe6193005b8324

Contents?: true

Size: 801 Bytes

Versions: 4

Compression:

Stored size: 801 Bytes

Contents

name: Test and deploy

on:
- push
- workflow_dispatch

jobs:
  test_and_deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
      with:
        ruby-version: 2.6.3
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rake
    - name: Deploy
      if: ${{ startsWith(github.ref, 'refs/tags/v') }}
      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
        gem build *.gemspec
        gem push *.gem
      env:
        GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mulang-ruby-6.1.0 .github/workflows/test_and_deploy.yml
mulang-ruby-6.0.1 .github/workflows/test_and_deploy.yml
mulang-ruby-6.0.0 .github/workflows/test_and_deploy.yml
mulang-php-6.0.0 .github/workflows/test_and_deploy.yml