-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (39 loc) · 1.69 KB
/
Copy pathrelease.yml
File metadata and controls
41 lines (39 loc) · 1.69 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
on:
workflow_dispatch:
release:
types: created
name: Build .phar on release
jobs:
build_phar:
runs-on: ubuntu-22.04
steps:
- name: Configure PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
tools: composer:v2
- uses: actions/checkout@v6
- name: Install PHIVE
run: |
wget --quiet -O phive.phar https://phar.io/releases/phive.phar
wget --quiet -O phive.phar.asc https://phar.io/releases/phive.phar.asc
gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79
gpg --verify phive.phar.asc phive.phar
chmod +x phive.phar
sudo mv phive.phar /usr/local/bin/phive
- run: |
composer install --no-interaction --no-scripts --no-progress
composer show
- run: phive --no-progress install --trust-gpg-keys 0x2DF45277AEF09A2F
- run: tools/box compile --verbose --no-ansi
- name: Fetch tag name from GITHUB_REF
id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
- name: Attach .phar to release
uses: svenstaro/upload-release-action@2.11.4
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: slimdump.phar
asset_name: slimdump-${{ steps.get_version.outputs.VERSION }}.phar
tag: ${{ github.ref }}