Skip to content

Merge pull request #5 from minzords/latest #2

Merge pull request #5 from minzords/latest

Merge pull request #5 from minzords/latest #2

Workflow file for this run

name: Release workflow
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
- name: Build project
run: |
cd /home/runner/work/fields/
cd fields && composer install --no-dev && cd ..
rm -r fields/.git* fields/tools fields/composer.*
tar -zcvf fields-${{ github.ref_name }}.tgz fields
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: fields-${{ github.ref_name }}.tgz
path: /home/runner/work/fields/fields-${{ github.ref_name }}.tgz
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: /home/runner/work/fields/fields-${{ github.ref_name }}.tgz
body: "New release is available"
name: ${{ github.ref_name }}
draft: true
generate_release_notes: true