diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..04cfad1 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,55 @@ +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + + +jobs: + release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Build release distributions + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade build + python -m build + + - name: Upload distributions + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + runs-on: ubuntu-latest + + needs: + - release-build + + permissions: + id-token: write + + environment: + name: release + url: https://pypi.org/p/vrp-quantum-solver + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c7e23fe..99679b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "vrp-quantum-solver" -version = "0.0.1" +version = "1.0.0" authors = [ { name="Bruno Rosendo", email="brunomrosendo@hotmail.com" }, ] @@ -20,4 +20,4 @@ classifiers = [ [project.urls] Homepage = "https://github.com/BrunoRosendo/vrp-quantum-solver" Issues = "https://github.com/BrunoRosendo/vrp-quantum-solver/issues" -Dissertation = "https://hdl.handle.net/10216/160532" +Thesis = "https://hdl.handle.net/10216/160532"