Skip to content

updated build.yml 5

updated build.yml 5 #6

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: Fetch tags
run: git fetch --tags
- name: Set PACKAGE_VERSION
run: echo "PACKAGE_VERSION=$(git describe --tags --abbrev=0 | cut -c 2- | awk -F. '{$NF = $NF + 1;} 1' OFS=. | sed 's/\.$//')" >> $GITHUB_ENV
- name: Build the executable
run: |
echo "PACKAGE_VERSION=$PACKAGE_VERSION"
php vendorkill app:build --build-version=$PACKAGE_VERSION
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: build the executable
- name: Create git tag
run: |
git config --global user.email "abdelhamid.errahmouni@gmail.com"
git config --global user.name "Abdelhamid Errahmouni"
git tag -a v$PACKAGE_VERSION -m "v$PACKAGE_VERSION"
- name: Push git tag
run: git push --tag