Skip to content

Commit

Permalink
Merge pull request #67 from payplug/release-3.5.4
Browse files Browse the repository at this point in the history
Release 3.5.4
  • Loading branch information
lacan1 authored Jan 20, 2022
2 parents fa2533b + 70903a9 commit 9fe3787
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/php.yml → .github/workflows/payplug-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- master
- develop
tags:
- "*"
pull_request:
branches:
- master
Expand Down Expand Up @@ -40,3 +42,24 @@ jobs:
- name: Run test suite
run: phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml

release:

runs-on: ubuntu-18.04
needs: tests_unit
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
with:
token: ${{ secrets.GITHUB_TOKEN}}
- name: Fetch library version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Apply new version from tag
run: |
echo $RELEASE_VERSION
sed -i "s/LIBRARY_VERSION = '*.*'/LIBRARY_VERSION = '${{ env.RELEASE_VERSION }}'/" lib/Payplug/Core/Config.php
git config user.email [email protected]
git config user.name "GitHub Actions"
git add .
git commit -m "[Automated Release Action]"
git push origin HEAD:master

0 comments on commit 9fe3787

Please sign in to comment.