-
Notifications
You must be signed in to change notification settings - Fork 73
51 lines (40 loc) · 1.62 KB
/
phar-creation.yml
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Building Require-Checker phar for release"
on:
release:
types: [published]
jobs:
build:
name: "Building Require-Checker phar"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "8.2"
ini-values: memory_limit=-1, phar.readonly=0
- name: "Import GPG Key"
run: echo "$PRIVATE_KEY" | gpg --import
env:
PRIVATE_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
- name: "Install dependencies for build environment"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: "Build and sign phar file via phing"
run: "vendor/bin/phing phar-build phar-sign"
- name: "Upload phar file artifact"
uses: actions/upload-artifact@v4
with:
name: composer-require-checker.phar
path: |
build/composer-require-checker.phar
build/composer-require-checker.phar.asc
- name: Upload PHAR to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/composer-require-checker.phar*
file_glob: true
tag: ${{ github.ref }}