Skip to content

Commit

Permalink
updated build.yml 2
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelhamiderrahmouni committed Feb 21, 2024
1 parent ab8ec86 commit 66788f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

- name: Extract version
id: extract_version
run: echo ::set-output name=version::$(git describe --tags --abbrev=0 | cut -c 2-)
run: echo $(git describe --tags --abbrev=0 | cut -c 2- | awk -F. '{$NF = $NF + 1;} 1' OFS=. | sed 's/\.$//') >> $PACKAGE_VERSION

- name: Build the executable
run: php vendorkill app:build --build-version=${{ steps.extract_version.outputs.version }}0
run: php vendorkill app:build --build-version=$PACKAGE_VERSION

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Create git tag
run: |
git tag -a v${{ steps.extract_version.outputs.version }}0 -m "v${{ steps.extract_version.outputs.version }}0"
git tag -a v$PACKAGE_VERSION -m "v$PACKAGE_VERSION"
- name: Push git tag
run: git push --tag

0 comments on commit 66788f3

Please sign in to comment.