44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Build Release Artefact
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v0.0.*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: "8.4"
|
|
extensions: mbstring, intl, xml, curl, zip
|
|
|
|
- name: Install backend deps (prod)
|
|
env:
|
|
APP_ENV: prod
|
|
APP_DEBUG: "0"
|
|
run: composer install --no-dev --optimize-autoloader --no-interaction --no-scripts
|
|
|
|
- name: Build artefact
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
mkdir -p release
|
|
tar --exclude=.git --exclude=.gitea -czf "release/ednotif-bundle-${GITHUB_REF_NAME}.tar.gz" \
|
|
.
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: release/ednotif-bundle-${{ github.ref_name }}.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|