Skip to content

updated build.yml

updated build.yml #2

Workflow file for this run

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
run: echo ::set-output name=version::$(git describe --tags --abbrev=0 | cut -c 2-)
- 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