Skip to content

Commit

Permalink
build: use strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 26, 2024
1 parent ef31054 commit dc53cb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,3 @@ permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- 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 }}
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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 -vv --strict version --changelog --push --tag --commit

local-release:
@echo "Releasing a new version."
Expand Down

0 comments on commit dc53cb7

Please sign in to comment.