-
Notifications
You must be signed in to change notification settings - Fork 277
49 lines (46 loc) · 1.31 KB
/
release.yml
File metadata and controls
49 lines (46 loc) · 1.31 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
name: "release"
on:
workflow_dispatch:
inputs:
branch:
description: 'Target branch for release'
required: true
default: 'master'
type: string
version:
description: 'Release version'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
container: quay.io/sssd/ci-client-devel:latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
path: sssd
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
with:
gpg_private_key: ${{ secrets.GPG_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_tag_gpgsign: true
git_commit_gpgsign: true
git_committer_name: sssd-bot
git_committer_email: [email protected]
- name: Install dependencies
uses: ./sssd/.github/actions/install-dependencies
with:
working-directory: sssd
- name: Execute release script
working-directory: sssd
shell: bash
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
./scripts/release.sh "${{ inputs.branch }}" "${{ inputs.version }}"