Clean up icons and prepare for full release (#28) #9
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: Release creation | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
env: | |
PYTHON_VERSION: "3.12" | |
jobs: | |
build-linux: | |
name: Release on PyPi | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install the latest version of rye | |
uses: eifinger/setup-rye@v3 | |
- name: Sync Rye | |
run: | | |
rye pin ${{ env.PYTHON_VERSION }} --relaxed | |
rye sync --all-features | |
- name: Build and release on PyPi | |
run: | | |
rye build | |
rye publish --token ${{ secrets.PYPI_TOKEN }} --yes | |
- name: Package Linux App | |
run: | | |
rye run box package | |
rye run box installer | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | |
${{ github.workspace }}/target/release/*linux.sh | |
tag_name: ${{ github.ref_name }} | |
name: RIMSSchemeDrawer ${{ github.ref_name }} | |
body_path: ${{ github.workspace }}/release_text.md | |
build-windows: | |
needs: build-linux | |
name: Package GUI for Windows and add to Release | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
pip install . | |
pip install box-packager | |
pip install build | |
- name: Package Windows App | |
run: | | |
box init -q -b build | |
box package | |
box installer | |
- name: Add to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | |
target/release/*win.exe | |
tag_name: ${{ github.ref_name }} | |
build-macos: | |
needs: build-linux | |
name: Package GUI for MacOS and add to Release | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Rye | |
uses: eifinger/setup-rye@v3 | |
- name: Sync Rye | |
run: | | |
rye pin ${{ env.PYTHON_VERSION }} --relaxed | |
rye sync --all-features | |
- name: Package MacOS App | |
run: | | |
rye run box package | |
rye run box installer | |
- name: Add to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | |
target/release/*macos.dmg | |
tag_name: ${{ github.ref_name }} |