Skip to content

Attach plugin-only files to release #5

Attach plugin-only files to release

Attach plugin-only files to release #5

Workflow file for this run

name: Attach plugin-only files to release
on:
release:
types:
- created
permissions:
contents: write
jobs:
attach-zip:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Replace [VERSION_NUMBER] with release name in about screen
run: |
RELEASE_NAME="${{ github.event.release.name }}"
sed -i "s/\[VERSION_NUMBER\]/$RELEASE_NAME/g" ./node_mailer/user_interface/about.py
- name: Create release ZIP
run: |
mkdir -p NukeNodeMailer
cp -r node_mailer NukeNodeMailer/
cp menu.py NukeNodeMailer/
cp installation/* .
zip -r NukeNodeMailer.zip NukeNodeMailer installation_instructions.txt menu.py
- name: Upload ZIP to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: NukeNodeMailer.zip