-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 970 Bytes
/
Copy pathrelease.yaml
File metadata and controls
38 lines (33 loc) · 970 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
34
35
36
37
38
# https://guides.rubygems.org/trusted-publishing/releasing-gems/
name: Release
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
push:
name: Push gem to RubyGems.org
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
environment: release
steps:
# Set up
- uses: actions/checkout@v6
with:
persist-credentials: false
submodules: true
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Download mandoc
run: |
wget https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz
tar xf mandoc-1.14.6.tar.gz
(cd mandoc-1.14.6/ && ./configure)
# Release
- uses: rubygems/release-gem@v1