Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Aug 14, 2024
1 parent 9b5cbdb commit d97c64c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
release:
types: [published]

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/slurminade
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- uses: actions/checkout@master
with:
lfs: false
- uses: actions/setup-python@v4
- name: Build SDist and wheel
run: pipx run build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ where = ["src"]
name = "cpsat-autotune"
version = "0.0.1"
authors = [
{ name = "TU Braunschweig, IBR, Algorithms Group (Dominik Krupke)", email = "[email protected]" },
{ name = "Dominik Krupke", email = "[email protected]" },
]
description = "A tool to automatically tune the parameters of the OR-Tools' CP-SAT solver."
description = "A tool to automatically tune the hyperparameters of the OR-Tools' CP-SAT solver."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
Expand Down

0 comments on commit d97c64c

Please sign in to comment.