Attach plugin-only files to release #5
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: 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 |