forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (63 loc) · 1.96 KB
/
release.yml
File metadata and controls
65 lines (63 loc) · 1.96 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
54
55
56
57
58
59
60
61
62
63
64
65
on:
release:
types: [published]
name: Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: composer
uses: docker://composer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_MIRROR_PATH_REPOS: 1
with:
args: install --no-interaction --prefer-dist --optimize-autoloader
- name: warm cache
uses: phpDocumentor/phar-ga@latest
with:
args: php bin/console cache:warmup --env=prod
- name: build phar
uses: phpDocumentor/phar-ga@latest
with:
args: box compile
- name: sign phar
uses: phpDocumentor/phar-ga@latest
env:
PASSPHRASE: ${{ secrets.PASSPHRASE }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
with:
args: gpg --command-fd 0 --pinentry-mode loopback -u info@phpdoc.org --batch
--detach-sign --output build/phpDocumentor.phar.asc build/phpDocumentor.phar
- name: release phar
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.release.tag_name }}
files: |
build/phpDocumentor.phar.asc
build/phpDocumentor.phar
- name: release shim
uses: benc-uk/workflow-dispatch@v121
with:
workflow: Release
repo: phpDocumentor/shim
ref: '3.x'
token: ${{ secrets.BOT_TOKEN }}
inputs: '{ "tag": "${{ github.event.release.tag_name }}"}'
release-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Release docker
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: phpdoc/phpdoc
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tag_semver: true
- name: Trigger
uses: benc-uk/workflow-dispatch@v121
with:
workflow: Docker build
token: ${{ secrets.BOT_TOKEN }}