Files
piratepoet/.github/workflows/release.yml
Michael Yick 6d017c9298
All checks were successful
Make release / release (push) Successful in 56m59s
add more memory to node js so it doesnt brap out
2025-02-14 19:17:12 -06:00

40 lines
918 B
YAML

name: Make release
on:
push:
tags:
- '*' # Trigger on any tag push
env:
NODE_OPTIONS: "--max-old-space-size=8192"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Pre-reqs
run: |
sudo apt update
sudo apt install -y php php-symfony composer php-cli php-gd php-mysql golang npm
npm install -g pnpm
- name: Build zip file
run: |
cd mailpoet || { echo "Directory 'mailpoet' not found"; exit 1; }
cp .env.sample .env
composer update
sh build.sh
mkdir -p ../output
mv mailpoet.zip ../output
- name: Upload Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
output/mailpoet.zip
api_key: '${{secrets.RELEASE_SMITH_TOKEN}}'