File: release.yml

package info (click to toggle)
ruby-addressable 2.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,016 kB
  • sloc: ruby: 13,688; makefile: 11
file content (35 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Release

on:
  push:
    tags:
      - addressable-*

jobs:
  release:
    if: github.repository == 'sporkmonger/addressable'
    runs-on: ubuntu-latest
    permissions:
      id-token: write # for trusted publishing
    steps:
      # tags are named addressable-VERSION, e.g. addressable-2.8.6
      - name: Set VERSION from git tag
        run: echo "VERSION=$(echo ${{ github.ref }} | cut -d - -f 2)" >> "$GITHUB_ENV"

      - name: Install libidn
        run: sudo apt-get install libidn11-dev

      - uses: actions/checkout@v6

      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          ruby-version: ruby

      - uses: rubygems/configure-rubygems-credentials@v1.0.0

      # ensure gem can be built and installed
      - run: bundle exec rake gem:install

      # push gem to rubygems.org
      - run: gem push --verbose pkg/addressable-${VERSION}.gem