Skip to content

Commit

Permalink
Merge pull request #43 from Helmholtz-AI-Energy/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
mcw92 authored Jun 29, 2023
2 parents 2224f6c + 50181e0 commit 827e2f9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,28 @@ name: Upload Python Package
on:
push:
branches: [release]
# release:
# types: [published]

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
concurrency: release

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[metadata]
name = propulate
version = "1.0.0"
version = 1.0.0
description = Massively parallel genetic optimization through asynchronous propagation of populations
author = Oskar Taubert, Marie Weiel, Helmholtz AI
author_email = [email protected], [email protected]
Expand Down Expand Up @@ -110,6 +110,6 @@ upload_to_pypi=true
upload_to_release=true
commit_message= "{version} [skip ci]"

version_variable = ["setup.cfg:version"]
version_variable = "setup.cfg:version"

build_command = "python -m build"

0 comments on commit 827e2f9

Please sign in to comment.