Sha256: cee6c6c38a465880cce8065221fd3e9ec9fe75471e66379b7afa3b81085753b5
Contents?: true
Size: 1.52 KB
Versions: 10
Compression:
Stored size: 1.52 KB
Contents
--- name: Pipeline on: push: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: name: Build runs-on: ubuntu-22.04 strategy: matrix: ruby-version: [3.2.2] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: bundler-cache: true ruby-version: ${{ matrix.ruby-version }} - name: Lint run: bundle exec rubocop - name: Test run: bundle exec rspec # Separate `release` job from `build`, as we only want release to be run once # and not run for each ruby version in the matrix: release: name: Release if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' needs: build runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: bundler-cache: true - name: Release the gem run: | mkdir -p ~/.gem cat << EOF > ~/.gem/credentials --- :github: Bearer ${GITHUB_TOKEN} :rubygems_api_key: ${RUBYGEMS_API_KEY} EOF chmod 0600 ~/.gem/credentials git config user.email "noreply@wealthsimple.com" git config user.name "Wolfbot" bundle exec rake release env: RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
Version data entries
10 entries across 10 versions & 1 rubygems