Merge pull request #16 from totten/master-sym5 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
## box.phar requires php72 | |
php-version: '7.4' | |
tools: composer:v2 | |
extensions: pcntl | |
- name: Set env | |
run: | | |
echo RELEASE_VERSION=${GITHUB_REF:11} >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Build PHAR | |
run: ./scripts/build.sh && mv dist/loco.phar dist/loco-${{ env.RELEASE_VERSION }}.phar | |
continue-on-error: false | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
prerelease: false | |
body: | | |
Changes in this Release | |
- First Change | |
- Second Change | |
files: dist/loco-*.phar |