Skip to content

Merge pull request #156 from Ljzd-PRO/devel #49

Merge pull request #156 from Ljzd-PRO/devel

Merge pull request #156 from Ljzd-PRO/devel #49

Workflow file for this run

name: GitHub Release
on:
workflow_dispatch:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
uses: ./.github/workflows/python-package.yml
release:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
- name: Download executable
uses: actions/download-artifact@v4
with:
path: artifact
- name: Compress Directories
run: |
cd artifact
for dir in */; do
dir_name=$(basename "$dir")
zip_file_name="${dir_name}-$(basename ${{ github.ref }}).zip"
zip -r "${zip_file_name}" "${dir}"
done
cd ..
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: CHANGELOG.md
files: artifact/*.zip
prerelease: ${{ contains(github.ref, 'beta') }}