-
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1011 Bytes
/
release.yml
File metadata and controls
42 lines (34 loc) · 1011 Bytes
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
name: Release
on:
push:
tags:
- '*.*.*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
env:
COMPOSER_HOME: ./.composer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Phar
run: make compile
- name: Changelog
id: changelog
run: |
echo "contents<<CHANGELOGEOF" >> $GITHUB_OUTPUT
sed -e '1,/##/d' -e '/##/,$d' CHANGELOG.md >> $GITHUB_OUTPUT
echo "CHANGELOGEOF" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: shogo82148/actions-create-release@v1
with:
body: ${{ steps.changelog.outputs.contents }}
- name: Upload Phar
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/build/mtxpc.phar
asset_name: mtxpc.phar
asset_content_type: application/x-tar