-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 951 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (33 loc) · 951 Bytes
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
# SPDX-FileCopyrightText: 2026 David Rabkin
# SPDX-License-Identifier: 0BSD
---
name: release
'on':
push:
tags: ['[0-9]+.[0-9]+.[0-9]+']
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1.321.0
with:
ruby-version: '3.4'
- name: Verify the tag matches the gem version
run: |
ver="$(ruby -Ilib -rtranscode/version -e 'puts Transcode::VERSION')"
test "$ver" = "$GITHUB_REF_NAME"
- uses: rubygems/configure-rubygems-credentials@v2.1.0
- run: gem build transcode.gemspec
- run: gem push "transcode-$GITHUB_REF_NAME.gem"
- env:
GH_TOKEN: ${{ github.token }}
run: gh release create "$GITHUB_REF_NAME" --generate-notes