-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (31 loc) · 1.05 KB
/
create_release.yaml
File metadata and controls
41 lines (31 loc) · 1.05 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
name: Create release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to create'
required: true
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Check version
run: if [ $(grep ${{ github.event.inputs.version }} src/SdkVersion.php -c) != 1 ]; then exit 1; fi
- uses: shivammathur/setup-php@v2
with:
php-version: 7.1
extensions: none, curl, dom, mbstring, simplexml, tokenizer, xml, xmlwriter, json, fileinfo
coverage: none
- run: composer install --no-dev
- run: chmod 777 -R vendor
- run: git archive --output=tpay-openapi-php.zip HEAD
- run: zip -ur tpay-openapi-php.zip vendor/
- name: Create Github release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.version }}
name: "v${{ github.event.inputs.version }}"
generateReleaseNotes: true
artifacts: tpay-openapi-php.zip