Skip to content

Rename released zip

Rename released zip #6

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'R[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build tools
run: |
python -m pip install pyinstaller
cd buildspec
python build_tools.py all
- name: Extract version from tag
id: version
run: |
$tag = '${{ github.ref_name }}'
$version = $tag -replace '^R', ''
echo "version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
- name: Install markdown converter
run: python -m pip install markdown
- name: Convert README to HTML
run: python buildspec/readme_to_html.py
- name: Create release zip
id: zip
run: |
cd buildspec/dist
$zipName = "JMF-Python-Tools-${{ steps.version.outputs.version }}.zip"
Compress-Archive -Path *.exe, JMF-Tools-README.html -DestinationPath $zipName
echo "ZIP_FILE=$zipName" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: buildspec/dist/JMF-Python-${{ steps.version.outputs.version }}.zip
tag_name: ${{ github.ref_name }}
name: 'JMF-Python ${{ steps.version.outputs.version }}'
draft: false
prerelease: false