-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 936 Bytes
/
build.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
name: build the executable
on:
[push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Install Composer
run: composer update -W
- name: Extract version
id: extract_version
uses: Saionaro/extract-package-version@v1.2.1
- name: Build the executable
run: php vendorkill app:build --build-version=${{ steps.extract_version.outputs.version }}0
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: build the executable
- name: Create git tag
run: |
git tag -a v${{ steps.extract_version.outputs.version }}0 -m "v${{ steps.extract_version.outputs.version }}0"
- name: Push git tag
run: git push --tag