Skip to content

4.0.0-alpha.2

4.0.0-alpha.2 #212

Workflow file for this run

name: Publish
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-python-package:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Build
run: uv build --no-sources
- name: Upload dists
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
if-no-files-found: error
publish-python-package:
needs: build-python-package
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download dists
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# windows-installer:
# runs-on: windows-latest
# needs: python-package
# steps:
# - uses: actions/checkout@v6
# - uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install .[gui] pyinstaller
# - name: Install Inno Setup
# uses: crazy-max/ghaction-chocolatey@v3
# with:
# args: install innosetup -y --allow-unofficial --force
# - name: Run pyinstaller
# run: pyinstaller ./deeplc_pyinstaller.spec --clean --noconfirm
# - name: Test built DeepLC exe
# run: dist/deeplc/deeplc.exe --ignore-gooey --help
# - name: Run Inno Setup
# run: ISCC.exe ./deeplc_innosetup.iss /DAppVersion=${{ github.ref_name }}
# - name: Upload installer
# uses: actions/upload-artifact@v4
# with:
# name: windows-installer
# path: dist/*.exe
# - name: Upload installer to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# tag: ${{ github.ref }}
# file_glob: true
# file: dist/*.exe
# build-streamlit-image:
# runs-on: ubuntu-latest
# needs: publish-python-package
# steps:
# - uses: actions/checkout@v6
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push to ghcr.io
# uses: docker/build-push-action@v5
# with:
# context: streamlit
# push: true
# tags: |
# ghcr.io/compomics/deeplc-streamlit:${{ github.ref }}
# ghcr.io/compomics/deeplc-streamlit:latest