-
Notifications
You must be signed in to change notification settings - Fork 23
53 lines (47 loc) · 1.62 KB
/
Copy pathrelease.yml
File metadata and controls
53 lines (47 loc) · 1.62 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Workflow to create a new release
# Triggered manually via GitHub Actions UI
name: New Release on GitHub
on:
workflow_dispatch:
inputs:
version:
description: "Release version (e.g., x.y.z). Leave empty to use version.rb without .pre suffix"
required: false
type: string
next_version:
description: "Next development version (e.g., x.y.z). Leave empty to auto-increment minor version. Will append .pre automatically"
required: false
type: string
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: optional:development:special
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.6"
bundler-cache: true
- name: Install documentation dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc inkscape texlive-luatex texlive-fonts-extra texlive-latex-extra fonts-ibm-plex librsvg2-bin
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create release
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
SIGNING_KEY: ${{ secrets.PRIVATE_KEY_PEM }}
run: |
bundle exec rake release:run'[${{ github.event.inputs.version }},${{ github.event.inputs.next_version }}]'