Bump laravel/framework from 11.16.0 to 11.31.0 (#16) #12
Workflow file for this run
This file contains 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: 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 |