Files
ednotif-bundle/.gitea/workflows/release-artefact.yml
tristan 7e0c084ebe
All checks were successful
Auto Tag Develop / tag (push) Successful in 5s
Build Release Artefact / build (push) Successful in 36s
feat : restructuration des dossiers pour implementer plus facilement la suite des WS
2026-01-23 16:19:50 +01:00

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 }}