Merge pull request #56 from minvws/feature/release-wf-php-update #17
Workflow file for this run
This file contains hidden or 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
| name: Create release package | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV && | |
| echo "PKG_NAME=`basename $GITHUB_REPOSITORY -private`" >> $GITHUB_ENV | |
| - uses: actions/checkout@v6 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - name: Composer install (for indexing of vendor blade classes) | |
| run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-dev | |
| - name: Clean build | |
| run: rm -r .git | |
| - name: Create tar | |
| run: tar -czf ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }}.tar.gz ./.cache ./public ./templates ./vendor ./services.json ./mgo-services.json | |
| - name: Upload release tar | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }} | |
| path: ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }}.tar.gz |