Skip to content

Bump symfony/http-foundation from 7.1.1 to 7.1.7 (#15) #11

Bump symfony/http-foundation from 7.1.1 to 7.1.7 (#15)

Bump symfony/http-foundation from 7.1.1 to 7.1.7 (#15) #11

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-24.04
name: Build and release
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
- name: Checkout repository
uses: actions/checkout@v4
- name: Install NPM dependencies
run: npm install
- name: Build assets
run: npm run build
- name: Clean release
run: |
rm -rf .git* node_modules
- name: Define release version
run: |
TAG=${{ github.ref_name }}
{
echo "TAG=$TAG"
echo "VERSION=${TAG#v}"
} >> "$GITHUB_ENV"
- name: Build release
run: |
DIRECTORY="mfa-$VERSION"
TARGET="/tmp/mfa-$VERSION.tar.gz"
cd ..
cp -R mfa "$DIRECTORY"
tar --owner 0 --group 0 -czf "$TARGET" "$DIRECTORY"
rm -rf "$DIRECTORY"
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: /tmp/mfa-*.tar.gz