diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67688af6..923839b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,9 +16,9 @@ jobs: fetch-depth: 0 - name: Python Semantic Release - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - name: Install dependencies run: | @@ -28,3 +28,12 @@ jobs: run: make release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build package + run: | + python -m build --sdist --wheel --outdir dist/ . + - name: Publish package + uses: pypa/gh-action-pypi-publish@v1.10.3 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/Makefile b/Makefile index 901ff101..2dea9a14 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ release: ## release a new version @echo "Releasing a new version." @echo "This is a remote release, it will push to the remote repository." - semantic-release -vv version --changelog --push --tag --commit + semantic-release --strict version --changelog --push --tag --commit local-release: @echo "Releasing a new version." @echo "This is a local release, it will not push to the remote repository." @echo "You can push the changes and release manually." - semantic-release -vv version --changelog --commit --no-push + semantic-release version --changelog --commit --no-push selfcheck: ## check that the Makefile is well-formed @echo "The Makefile is well-formed." diff --git a/pyproject.toml b/pyproject.toml index df9666fd..c474f97b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" [project] -name = "drydock" +name = "tutor-contrib-drydock" dynamic = ["version"] description = "A Tutor plugin to manage our opinionated Open edX operations" readme = "README.md"