Skip to content

Commit

Permalink
release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
trincaog committed Dec 19, 2023
1 parent f4ebf98 commit a019017
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in pyproject.toml
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "magiccube"
version = "0.0.10"
version = "{{VERSION_PLACEHOLDER}}"
authors = [
{ name="Gonçalo Trincão Cunha", email="goncalo.cunha@gmail.com" },
]
Expand Down

0 comments on commit a019017

Please sign in to comment.