-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.51 KB
/
release.yaml
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
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to create'
required: true
name: Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: robinraju/[email protected]
name: Download release signature
with:
repository: "phpdocumentor/phpdocumentor"
tag: "${{github.event.inputs.tag}}"
fileName: '*'
tarBall: false
zipBall: false
- name: Import release key
run: |
gpg --auto-key-retrieve --verify phpDocumentor.phar.asc phpDocumentor.phar
- name: Export public key
run: |
gpg --export --armor [email protected] > ./keys/${{github.event.inputs.tag}}.key
- name: Commit public key
uses: EndBug/add-and-commit@v9
with:
add: 'keys'
message: 'Add release ${{github.event.inputs.tag}} key'
default_author: github_actions
- name: Release
uses: ncipollo/release-action@v1
with:
tag: "${{github.event.inputs.tag}}"
body: "Release of ${{github.event.inputs.tag}} for more information see the main repo: https://github.com/phpDocumentor/phpDocumentor/releases/tag/${{github.event.inputs.tag}}"